curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getPriorityFeeEstimate",
"params": [
{
"transaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDArczbMia1tLmq7zz4DinMNN0pJ1JtLdqIJPUw3YrGCzYAMHBsgN27lcgB6H2WQvFgyZuJYHa46puOQo9yQ8CVQbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCp20C7Wj2aiuk5TReAXo+VTVg8QTHjs0UjNMMKCvpzZ+ABAgEBARU=",
"options": {
"recommended": true
}
}
]
}
'{
"jsonrpc": "2.0",
"result": {
"priorityFeeEstimate": 10000
},
"id": "1"
}Provides fee recommendations based on historical data, considering both global and local fee markets. Available on all Shared RPC plans and Dedicated Nodes.
curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getPriorityFeeEstimate",
"params": [
{
"transaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDArczbMia1tLmq7zz4DinMNN0pJ1JtLdqIJPUw3YrGCzYAMHBsgN27lcgB6H2WQvFgyZuJYHa46puOQo9yQ8CVQbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCp20C7Wj2aiuk5TReAXo+VTVg8QTHjs0UjNMMKCvpzZ+ABAgEBARU=",
"options": {
"recommended": true
}
}
]
}
'{
"jsonrpc": "2.0",
"result": {
"priorityFeeEstimate": 10000
},
"id": "1"
}2.0 Request identifier
getPriorityFeeEstimate 1 elementShow child attributes
Base58 or Base64 encoded serialized transaction. Either transaction or accountKeys must be provided.
Array of account public keys as base-58 encoded strings. Either transaction or accountKeys must be provided.
Configuration options for fee estimation
Show child attributes
Return a single recommended priority fee (typically 50th percentile). Cannot be used with priorityLevel or includeAllPriorityFeeLevels.
Priority level to estimate fee for. Min=0th, Low=25th, Medium=50th, High=75th, VeryHigh=95th, UnsafeMax=100th percentile.
Min, Low, Medium, High, VeryHigh, UnsafeMax Return all priority fee levels (Min, Low, Medium, High, VeryHigh, UnsafeMax)
Number of slots to look back for fee estimation. Default is 150.
1 <= x <= 300Treat slots with no transactions as having zero fees. Useful for accounts with sparse transaction history.
Include vote transactions in fee estimation
Successful response
2.0 Priority fee estimation result
Show child attributes
Estimated priority fee in micro-lamports per compute unit (returned when using recommended or priorityLevel options)
Priority fee estimates for all levels (returned when using includeAllPriorityFeeLevels option)
Show child attributes
Minimum priority fee (0th percentile) in micro-lamports
Low priority fee (25th percentile) in micro-lamports
Medium priority fee (50th percentile) in micro-lamports
High priority fee (75th percentile) in micro-lamports
Very high priority fee (95th percentile) in micro-lamports
Maximum priority fee (100th percentile) in micro-lamports
Was this page helpful?