Actions11
Overview
This node enables interaction with the Solana blockchain network, specifically supporting multiple operations including sending SOL tokens, sending SPL tokens, retrieving balances, creating wallets, signing/verifying messages, staking, and more. The "Get Multiple Token Balances" operation retrieves the balances of multiple specified SPL tokens for a given address.
Common scenarios where this node is beneficial include:
- Monitoring token holdings across various SPL tokens in a single account.
- Building dashboards or reports that aggregate token balances.
- Automating wallet management tasks such as balance checks before transactions.
- Integrating Solana token data into workflows without manual blockchain queries.
For example, you can input a wallet address and a list of token mint addresses to get the current balances of those tokens held by that wallet.
Properties
Name | Meaning |
---|---|
Recipient / Address | The Solana address to query balances for. If left empty for some operations, defaults to sender's account. |
Token Mint Address | The mint address of a specific SPL token (required for sending tokens or checking token balance). |
Token Mints (Comma Separated) | A comma-separated list of SPL token mint addresses to retrieve balances for (used in "Get Multiple Token Balances"). |
Output
The output JSON object for the "Get Multiple Token Balances" operation has the following structure:
{
"success": true,
"balances": {
"<tokenMintAddress1>": <number|null>,
"<tokenMintAddress2>": <number|null>,
...
},
"operation": "getMultipleTokenBalances"
}
success
: Indicates if the operation was successful.balances
: An object mapping each provided token mint address to its balance as a number (floating point representing the UI amount). If the balance could not be retrieved for a token, its value will benull
.operation
: The name of the executed operation.
The node does not output binary data for this operation.
Dependencies
- Requires an API key credential for accessing the Solana RPC endpoint.
- Uses the official Solana Web3.js library and SPL Token library for blockchain interactions.
- Requires network access to the configured Solana RPC URL.
Troubleshooting
- Empty or invalid address: If the address parameter is missing or malformed, the node may throw errors or return null balances. Ensure valid Solana public keys are used.
- Invalid token mint addresses: Incorrect or non-existent token mint addresses will result in
null
balances for those tokens. - RPC connection issues: Network problems or incorrect RPC URLs can cause failures connecting to the Solana network.
- Credential errors: Missing or invalid API credentials will prevent any blockchain interaction.
- Rate limits or timeouts: Excessive requests to the RPC endpoint might lead to rate limiting or timeouts.
Error messages typically indicate the nature of the failure, such as "No credentials returned!" or "Unsupported operation". To resolve, verify inputs, credentials, and network connectivity.