Solana fee and compute unit estimates
blockchain_fees_solanaGet Solana priority fee recommendations and estimate compute units for native transfers, SPL token transfers, and program calls to plan transaction costs.
Instructions
Blockchain Fees Solana: fee recommendations and compute-unit estimation. Solana uses compute units (not gas), so this is a distinct cost model from EVM.
Actions: • get-fee-recommendations: Get current priority fee recommendations from the mempool • estimate-native-coin-transfer-compute-units: Estimate compute units for a native SOL transfer • estimate-token-transfer-compute-units: Estimate compute units for an SPL token transfer • estimate-program-invocation-compute-units: Estimate compute units for an arbitrary program instruction call
Credits by action (source: OpenAPI): • estimate-native-coin-transfer-compute-units: 120 • estimate-program-invocation-compute-units: 120 • estimate-token-transfer-compute-units: 120 • get-fee-recommendations: 90
Credits are indicative only and may change at any time. The actual credits spent for each API request are returned in the response headers.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"network": "<network>"
},
"name": "blockchain_fees_solana"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| amount | No | Amount in lamports (native) or token base units (token) - required for estimate-native-coin-transfer-compute-units, estimate-token-transfer-compute-units | |
| sender | No | Sender address - required for all estimate actions | |
| context | No | Optional context for the request - echoed back in response | |
| network | Yes | Network name | |
| accounts | No | Accounts referenced by the instruction, in the order the program expects them (estimate-program-invocation-compute-units only; may be empty) | |
| programId | No | On-chain program address to invoke - required for estimate-program-invocation-compute-units | |
| recipient | No | Recipient address - required for estimate-native-coin-transfer-compute-units, estimate-token-transfer-compute-units | |
| tokenStandard | No | SPL token program standard - required for estimate-token-transfer-compute-units | |
| contractAddress | No | SPL token mint address - required for estimate-token-transfer-compute-units | |
| instructionData | No | Base58/base64-encoded instruction data for the program call - required for estimate-program-invocation-compute-units |