Shred Delivery and Sender are now live! Get earliest access to raw Solana data and optimized transaction sending. Learn about Shred Delivery | Learn about Sender
简体中文
返回从给定插槽开始的已确认区块列表。
cURL
curl --request POST \ --url https://mainnet.helius-rpc.com/ \ --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"
方法的请求参数。
Show child attributes
成功检索到已确认的区块。
JSON-RPC 协议版本。
与请求匹配的标识符。
从请求的插槽开始按升序排列的已确认 Solana 区块插槽编号列表。
[5, 6, 7]
此页面对您有帮助吗?