getRecentPrioritizationFees RPC 方法

返回最近区块的优先级费用列表。

当前,节点的优先级费用缓存最多存储 150 个区块的数据。

$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getRecentPrioritizationFees",
> "params": [
> ["CxELquR1gPP8wHe33gZ4QxqGB3sZ9RSwsJ2KshVewkFY"]
> ]
> }
> '

params

arrayoptional

一个包含账户地址的数组(最多 128 个地址),以 base-58 编码的字符串形式表示

如果提供了此参数,响应将反映出锁定所有提供账户为可写状态的交易费用。

result

Response
{
"jsonrpc": "2.0",
"result": [
{
"slot": 348125,
"prioritizationFee": 0
},
{
"slot": 348126,
"prioritizationFee": 1000
},
{
"slot": 348127,
"prioritizationFee": 500
},
{
"slot": 348128,
"prioritizationFee": 0
},
{
"slot": 348129,
"prioritizationFee": 1234
}
],
"id": 1
}
array

一个包含优先级费用对象的数组,其中包括:

Is this page helpful?