prepare_transactions_tron
Build unsigned Tron transactions for TRX, TRC-20, and NFT transfers, ready for local signing and broadcast. Returns unsigned transaction and fee details.
Instructions
Build unsigned Tron transactions ready for signing. Returns the unsigned transaction and fee details. After preparing, sign locally (tron_sign) and broadcast via broadcast_signed_transaction. These are Tron's dedicated prepare-transactions endpoints, distinct from the generic EVM ones used for other chains.
Actions: • native-coins: Build an unsigned native TRX transfer • trc20-tokens: Build an unsigned TRC-20 token transfer • non-fungible-tokens: Build an unsigned TRC-721/TRC-1155 NFT transfer
Credits by action (source: OpenAPI): • native-coins: 90 • non-fungible-tokens: 128 • trc20-tokens: 120
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 sun for native-coins, or token base units for trc20-tokens (required for native-coins, trc20-tokens) | |
| sender | No | Sender's Tron address (required for all actions) | |
| context | No | Optional context for the request - echoed back in response | |
| network | Yes | Network name | |
| tokenId | No | NFT token ID (required for non-fungible-tokens) | |
| contract | No | Token contract address (required for trc20-tokens, non-fungible-tokens) | |
| feeLimit | No | Max TRX fee limit in sun (trc20-tokens, non-fungible-tokens only) | |
| recipient | No | Recipient's Tron address (required for all actions) |