Turnkey icon

Turnkey

Use Turnkey

Overview

This node integrates with the Turnkey API to manage cryptocurrency wallets and accounts within an organization. Specifically, the "Get Wallet Accounts" operation retrieves all accounts associated with a specified wallet ID under a given organization.

Common scenarios for this node include:

  • Fetching wallet account details for auditing or reporting.
  • Integrating wallet account data into automated workflows.
  • Synchronizing wallet account information with other systems.

For example, a user might use this node to pull all accounts from a specific wallet to display balances or perform batch operations on those accounts.

Properties

Name Meaning
Authentication Method of authentication; currently supports only "API Key".
Organization ID The unique identifier of the Turnkey organization owning the wallet.
Wallet ID The unique identifier of the wallet whose accounts are to be retrieved.

Output

The node outputs an array of JSON objects representing the wallet accounts retrieved from the Turnkey service. Each object contains detailed information about individual wallet accounts associated with the specified wallet ID.

No binary data is output by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Turnkey API.
  • Uses the Turnkey client library (@turnkey/http) and an API key stamper module for request signing.
  • If encoding conversions are needed in other operations, additional dependencies like bs58 may be used (not relevant for this operation).
  • The node expects proper configuration of the API base URL and valid credentials.

Troubleshooting

  • Missing or invalid Organization ID or Wallet ID: Ensure these required parameters are correctly set; otherwise, the API call will fail.
  • Authentication errors: Verify that the API key credential is valid and has sufficient permissions.
  • Network or API errors: Check connectivity and Turnkey service status.
  • Operation not supported error: This occurs if an unsupported operation name is provided; ensure "getWalletAccounts" is selected.
  • Error messages from the node will typically indicate failure reasons, e.g., "Failed to execute operation: [error message]".

Links and References

Discussion