Actions7
Overview
This node integrates with the Turnkey API to perform various wallet and transaction-related operations within a specified organization. The "Whoami" operation, in particular, retrieves information about the current organization associated with the provided Organization ID.
Common scenarios for this node include:
- Retrieving organizational details to verify identity or permissions.
- Managing wallets and wallet accounts.
- Signing blockchain transactions programmatically.
Practical example: Use the "Whoami" operation to confirm the identity and metadata of your organization before performing sensitive wallet operations or signing transactions.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authentication; currently supports only "API Key". |
| Organization ID | The unique identifier of the Turnkey organization for which to retrieve information. |
Output
The output JSON contains the response from the Turnkey API's "whoami" endpoint, which includes information about the current organization. This typically consists of organizational metadata such as name, ID, and other relevant details returned by the API.
No binary data is produced by this operation.
Example output structure (simplified):
{
"organizationId": "string",
"organizationName": "string",
"otherMetadata": "..."
}
Dependencies
- Requires an API key credential for authenticating with the Turnkey API.
- Uses the Turnkey client library (
@turnkey/http) and an API key stamper utility (@turnkey/api-key-stamper) for request signing. - No additional environment variables are explicitly required beyond the API key credential configuration.
Troubleshooting
- Missing or invalid API key: Ensure that the API key credential is correctly configured and has sufficient permissions.
- Invalid Organization ID: Verify that the Organization ID parameter is correct and corresponds to an existing organization in Turnkey.
- Network or API errors: Check network connectivity and Turnkey service status.
- Error message:
Failed to execute operation: ...indicates an issue during the API call; inspect the error message for specifics.
To resolve errors:
- Double-check input parameters.
- Confirm API key validity.
- Review Turnkey API documentation for permission requirements.