New: getTransactionsForAddress - Query transaction history with advanced filtering, sorting, and pagination. Learn More
New: getTransactionsForAddress - Query transaction history with advanced filtering, sorting, and pagination. Learn More
返回当前或前一个纪元的最近区块生产信息。
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getBlockProduction",
"params": [
{
"commitment": "finalized",
"identity": "85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr",
"range": {
"firstSlot": 0,
"lastSlot": 9887
}
}
]
}
'{
"jsonrpc": "2.0",
"id": "<string>",
"result": {
"context": {
"slot": 9887
},
"value": {
"byIdentity": {
"85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr": [
9888,
9886
]
},
"range": {
"firstSlot": 0,
"lastSlot": 9887
}
}
}
}JSON-RPC协议版本。
2.0 请求的唯一标识符。
"1"
要调用的RPC方法名称。
getBlockProduction 请求的参数。
显示 子属性
请求的承诺级别。
processed, confirmed, finalized "finalized"
可选的验证者身份公钥(base-58编码),用于筛选特定验证者的结果。
"85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr"
成功检索区块生产信息。
2.0 显示 子属性
显示 子属性
此页面对您有帮助吗?
curl --request POST \
--url 'https://mainnet.helius-rpc.com/?api-key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "1",
"method": "getBlockProduction",
"params": [
{
"commitment": "finalized",
"identity": "85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr",
"range": {
"firstSlot": 0,
"lastSlot": 9887
}
}
]
}
'{
"jsonrpc": "2.0",
"id": "<string>",
"result": {
"context": {
"slot": 9887
},
"value": {
"byIdentity": {
"85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr": [
9888,
9886
]
},
"range": {
"firstSlot": 0,
"lastSlot": 9887
}
}
}
}