prepare_transactions_solana
Build unsigned Solana transactions for native SOL or SPL token transfers, returning the unsigned transaction plus fee details so you can sign locally and broadcast.
Instructions
Build unsigned Solana transactions ready for signing. Returns the unsigned transaction and fee details. After preparing, sign locally and broadcast via broadcast_signed_transaction.
Actions: • native-coins: Build an unsigned native SOL transfer • spl-tokens: Build an unsigned SPL token transfer
Credits by action (source: OpenAPI): • native-coins: 180 • spl-tokens: 240
Credits are indicative only and may change at any time. The actual credits spent for each API request are returned in the response headers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| amount | No | Amount in lamports for native-coins, or token base units for spl-tokens (required for all actions) | |
| context | No | Optional context for the request - echoed back in response | |
| network | Yes | Network name | |
| toAddress | No | Recipient address (required for all actions) | |
| feePriority | No | Fee priority tier - defaults to standard if omitted | |
| fromAddress | No | Sender address (required for all actions) | |
| tokenContract | No | SPL token mint address (required for spl-tokens) | |
| tokenStandard | No | SPL token program standard (spl-tokens only) |