Solana RPC · Blocks & slots
POST getRecentPrioritizationFees
Recent per-CU priority fees, optionally for accounts.
Endpoint
POST https://solrpc.infinityblocks.io/<API_KEY>
Standard Solana JSON-RPC 2.0 over HTTP POST. The API key is part of the URL path.
Parameters
| Param | Type | Required | Description |
|---|---|---|---|
addresses | string[] | no | Optional accounts the tx will write to. |
Request
curl -s https://solrpc.infinityblocks.io/<API_KEY> \
-X POST -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"getRecentPrioritizationFees","params":[["<ADDRESS>"]]}'
With @solana/web3.js
const fees = await rpc.getRecentPrioritizationFees({ lockedWritableAccounts: [new PublicKey("<ADDRESS>")] });
Response
{ "jsonrpc": "2.0", "id": 1, "result": [ { "slot": 423214900, "prioritizationFee": 0 }, { "slot": 423214901, "prioritizationFee": 12000 } ] }
Try it
Run getRecentPrioritizationFeeslive · POST
Replace placeholders (e.g. <ADDRESS>) with real values. Your key is stored only in this browser.
—