getPriorityFeeEstimate, RPC on carbium services: returns {priorityFeeEstimate, priorityFeeLevels?: {min, low, medium, high, veryHigh, unsafeMax}}. It costs 5 credits, and a JSON-RPC batch refuses it.
| param | type | ||
|---|---|---|---|
| accountKeys | pubkey[] | opt | at most 128 |
| transaction | string | opt | read when accountKeys is absent |
| options.priorityLevel | string | opt | Min, Low, Medium, High, VeryHigh or UnsafeMax |
| options.includeAllPriorityFeeLevels | bool | opt | adds priorityFeeLevels |
| options.recommended | bool | opt | reads the 75th percentile |
| options.lookbackSlots | u64 | opt | at most 150 |
| options.transactionEncoding | "base58" | "base64" | opt | how transaction is encoded, default base58 |
{"jsonrpc":"2.0","id":1,"method":"getPriorityFeeEstimate","params":[{"accountKeys":["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"],"options":{"includeAllPriorityFeeLevels":true}}]}answer{priorityFeeEstimate, priorityFeeLevels?: {min, low, medium, high, veryHigh, unsafeMax}}
refuses400 -32602 sent in a batch; 400 -32602 accountKeys over 128 or not pubkeys; 400 -32602 priorityLevel is not one of the six; 400 -32602 transaction does not decode