blockchain_fees_solana
Get Solana priority fee recommendations and estimate compute units for native transfers, SPL token transfers, and program invocations.
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.
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 |