I wanted to use the getRecentPrioritizationFees
Solana JSON-RPC method to compute a prioritization fee estimation.
According to the Solana documentation, this method has an accounts array parameter that, according to their documents, means the following:
If this parameter is provided, the response will reflect a fee to land a transaction locking all of the provided accounts as writable.
I tried this out via the https://api.mainnet-beta.solana.com cluster but got only 0 as fee values as a result when sending an empty array. Only when trying to use some accounts as parameter I could get some non-0 responses.
Based on that, I have two questions:
- Will I always get 0-valued fees when passing an empty array? Would it be possible that there is a bug that always returns 0?
- What exactly does it mean, from the method's documentation, that "the response will reflect a fee to land a transaction locking all of the provided accounts as writable."? Does this mean that the node will return data by looking at its priority fee cache using these accounts as keys?