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": "getSlot", "params": [ { "commitment": "finalized" } ] } '
{ "jsonrpc": "2.0", "id": "1", "result": 1234 }
您的Helius API密钥。您可以在仪表板中免费获取一个。
JSON-RPC协议版本。
2.0
"2.0"
请求的唯一标识符。
"1"
要调用的RPC方法名称。
getSlot
"getSlot"
可选的配置对象。
显示 子属性
要检索插槽的最终性级别(processed = 最快,finalized = 完全确认)。
已确认
finalized
processed
"finalized"
Minimum Solana blockchain slot that must be reached before processing this request.
1000
成功检索到当前插槽。
JSON-RPC 协议版本。
与请求匹配的标识符。
当前 Solana 区块链插槽号,表示网络的高度和进度。
1234
此页面对您有帮助吗?