Actions11
Overview
This node enables interaction with the Solana blockchain network, specifically focusing on sending SPL tokens in the "Send Token" operation. It allows users to transfer a specified amount of an SPL token from their wallet to another address on the Solana network.
Common scenarios where this node is beneficial include:
- Transferring custom tokens (SPL tokens) between wallets.
- Automating token payments or distributions.
- Integrating token transfers into broader workflows such as payment processing or rewards systems.
For example, a user can automate sending loyalty tokens to customers after a purchase or distribute governance tokens to stakeholders.
Properties
Name | Meaning |
---|---|
Recipient / Address | The Solana address to which the SPL token will be sent. |
Amount | The quantity of tokens to send. This is a numeric value representing the token amount. |
Token Mint Address | The mint address of the SPL token to send. This identifies the specific token type. |
Output
The node outputs a JSON object for each execution item with the following structure:
success
: Boolean indicating if the token transfer was successful.txSignature
: The transaction signature string confirming the transfer on the Solana blockchain.operation
: The name of the operation performed, here it will be"sendToken"
.
Example output JSON:
{
"success": true,
"txSignature": "5N7x...transaction_signature_here...",
"operation": "sendToken"
}
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for accessing the Solana RPC endpoint.
- Uses the Solana Web3.js library and SPL Token library for blockchain interactions.
- The node expects the private key of the sender's wallet to be provided securely via credentials.
- Network connectivity to the configured Solana RPC URL is necessary.
Troubleshooting
Common issues:
- Invalid recipient address format may cause errors.
- Insufficient token balance in the sender's wallet will prevent the transfer.
- Incorrect or missing token mint address will result in failure to identify the token.
- Network or RPC endpoint unavailability can cause timeouts or connection errors.
Error messages:
"Unsupported operation"
: Occurs if the operation parameter is not set to"sendToken"
."No credentials returned!"
: Indicates missing or misconfigured API credentials.- Errors related to invalid public keys or addresses usually mean the input address or mint address is malformed.
- Transaction failures often include error details from the Solana network; ensure sufficient funds and correct parameters.
To resolve these, verify all input fields, ensure the wallet has enough tokens, and confirm the RPC endpoint is reachable.