getBlocksWithLimit RPC 메소드

주어진 slot에서 시작하는 확인된 블록 목록을 반환합니다

$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getBlocksWithLimit",
> "params": [
> 5,
> 3
> ],
> {
> "commitment": "finalized"
> }
> }
> '

params

u64required

시작 slot

u64optional

제한(start_slot보다 500,000 블록 이상 높을 수 없음)

objectoptional

설정 객체

result

Response
{
"jsonrpc": "2.0",
"result": [5, 6, 7],
"id": 1
}
array

start_slot에서 시작하여 최대 limit개의 블록까지(포함) 확인된 블록을 나열하는 u64 정수 배열입니다.

Is this page helpful?