sendTransaction
Trading Boost endpoints only support the sendTransaction method. All other RPC methods should use standard ZAN RPC endpoints.
Request Format
POST <TRADING_BOOST_ENDPOINT>
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 1,
"method": "sendTransaction",
"params": [
"<BASE64_ENCODED_SIGNED_TRANSACTION>",
{
"encoding": "base64",
"skipPreflight": true
}
]
}Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| params[0] | string | Yes | Base64-encoded signed transaction. In Tips mode, transaction must include a transfer of >= 0.0003 SOL to tip account 7HkiWXe5deJvzn4D6kgMUFCADwX9Z4DMrdjNSSxN6bPp |
| params[1].encoding | string | Yes | Must be "base64" |
| params[1].skipPreflight | boolean | Recommended | Set to true for fastest submission speed; false will simulate transaction before forwarding |
Note:Supports other standard Solana sendTransaction parameters: preflightCommitment, maxRetries, minContextSlot.
Response
Success
{
"jsonrpc": "2.0",
"result": "5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQU",
"id": 1
}The result field contains the transaction signature (base-58 encoded).
Error
{
"jsonrpc": "2.0",
"error": {
"code": -32602,
"message": "invalid transaction: Transaction failed to sanitize accounts offsets correctly"
},
"id": 1
}Status Codes
Example business error codes:
{"error":{"code":-32602,"message":"param error; tip needs to be added"},"id":"1","jsonrpc":"2.0"}| Status Code | Error Code | Error Type | Notes |
|---|---|---|---|
| 401 | -32000 | authentication failure; apiKey does not exist | Account API Key error or insufficient permissions (contact us) |
| 400 | -32602 | param error; tip needs to be added | Missing tip fee (refer to demo to include at least 0.0003 SOL tip) |
| 400 | -32602 | param error; please check the parameters | Transaction parameter error (verify transaction parameters, refer to demo) |
| 400 | -32602 | param error; please encode in base64 format | Base64 encoding format error (only base64 encoding supported, base58 deprecated) |
| 400 | -32602 | param error; decoding failed | Transaction decoding failed, encoding error (refer to demo) |
Updated about 4 hours ago
