getBlocks RPC 메소드
두 슬롯 사이의 확인된 블록 목록을 반환합니다
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getBlocks",> "params": [> 5,> 10,> {> "commitment": "finalized"> }> ]> }> '
params
u64required
시작 슬롯
u64optional
종료 슬롯(start_slot
보다 500,000 블록 이상 높을 수 없음)
objectoptional
설정 객체
result
Response
{"jsonrpc": "2.0","result": [5, 6, 7, 8, 9, 10],"id": 1}
array
start_slot
와 end_slot
(제공된 경우) 또는 최신 확인된 slot 사이의 확인된
블록을 나열하는 u64 정수 배열입니다(포함). 허용되는 최대 범위는 500,000
slot입니다.
Is this page helpful?