New: getTransactionsForAddress - Query transaction history with advanced filtering, sorting, and pagination. Learn More
简体中文
返回从给定插槽开始的已确认区块列表。
cURL
curl --request POST \ --url 'https://mainnet.helius-rpc.com/?api-key=' \ --header 'Content-Type: application/json' \ --data ' { "jsonrpc": "2.0", "id": "1", "method": "getBlocksWithLimit", "params": [ 5, 3 ] } '
{ "jsonrpc": "2.0", "id": "1", "result": [ 5, 6, 7 ] }
您的Helius API密钥。您可以在仪表板中免费获取一个。
JSON-RPC协议版本。
2.0
"2.0"
请求的唯一标识符。
"1"
要调用的RPC方法名称。
getBlocksWithLimit
"getBlocksWithLimit"
方法的请求参数。
显示 子属性
开始检索连续区块列表的起始Solana插槽编号。
5
要返回的最大连续区块数(每次请求最多500,000个区块)。
3
查询区块的最终性级别 - 可以是已确认(乐观确认)或已完成(完全确认)。
confirmed
finalized
"finalized"
成功检索到已确认的区块。
JSON-RPC 协议版本。
与请求匹配的标识符。
从请求的插槽开始按升序排列的已确认 Solana 区块插槽编号列表。
[5, 6, 7]
此页面对您有帮助吗?