跳转到主要内容
POST
getRecentPrioritizationFees
curl --request POST \
  --url 'https://mainnet.helius-rpc.com/?api-key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "getRecentPrioritizationFees",
  "params": [
    [
      "CxELquR1gPP8wHe33gZ4QxqGB3sZ9RSwsJ2KshVewkFY"
    ]
  ]
}
'
{
  "jsonrpc": "2.0",
  "id": "1",
  "result": [
    {
      "slot": 348125,
      "prioritizationFee": 1234
    }
  ]
}

授权

api-key
string
query
必填

您的 Helius API 密钥。您可以在仪表板中免费获取一个。

请求体

application/json
jsonrpc
enum<string>
默认值:2.0
必填

JSON-RPC协议版本。

可用选项:
2.0
示例:

"2.0"

id
string
默认值:1
必填

请求的唯一标识符。

示例:

"1"

method
enum<string>
默认值:getRecentPrioritizationFees
必填

要调用的RPC方法名称。

可用选项:
getRecentPrioritizationFees
示例:

"getRecentPrioritizationFees"

params
string[][]

可选的账户地址数组。

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

特定Solana账户地址,用于过滤涉及写入此账户的优先费用。

响应

成功检索到最近的优先级费用。

jsonrpc
enum<string>

JSON-RPC 协议版本。

可用选项:
2.0
示例:

"2.0"

id
string

与请求匹配的标识符。

示例:

"1"

result
object[]

最近优先级费用的列表。