Returns a list of recent prioritization fees from the node's recent fee cache.
const response = await fetch('https://api.1inch.com/web3/501', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
jsonrpc: '2.0',
method: 'getRecentPrioritizationFees',
params: [],
id: 1,
}),
});
const data = await response.json();
console.log(data);
[
{
"slot": 348125,
"prioritizationFee": 0
},
{
"slot": 348126,
"prioritizationFee": 1000
}
]