Inspect recent Solana priority fees for a busy writable account
A swap competing to update a popular pool faces a specific set of writable locks. Recent fee samples can be queried for those accounts.
Choose the write set for the query
Read the writable account keys from your prepared instruction list and substitute the actual pool account below. Add other relevant writable accounts to the same array. The filter considers a transaction that locks all supplied accounts for writing. Including every read-only program address changes the question.
{
"jsonrpc": "2.0",
"id": 1,
"method": "getRecentPrioritizationFees",
"params": [
[
"WRITABLE_POOL_ACCOUNT"
]
]
}
Compare observations over the same slots
Repeat without the address parameter for a cluster-wide reference. Join results by slot before comparing them. For example, if the filtered sample is elevated for three consecutive slots while the unfiltered values stay near zero, keep the filtered series for diagnosing contention on this transaction path.
The node retains a rolling cache covering up to 150 blocks. Log the observation slots alongside any price decision. An old maximum from another workload gives little information about the next block.