getBlockProduction RPC 메소드
현재 또는 이전 epoch의 최근 블록 생성 정보를 반환합니다.
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getBlockProduction",> "params": [> {> "commitment": "finalized"> }> ]> }> '
params
objectoptional
설정 객체
result
Response
{"jsonrpc": "2.0","result": {"context": {"slot": 9887},"value": {"byIdentity": {"85iYT5RuzRTDgjyRa3cP8SYhM2j21fj7NhfJ3peu1DPr": [9888, 9886]},"range": {"firstSlot": 0,"lastSlot": 9887}}},"id": 1}
object
결과는 다음과 같은 값을 가진 RpcResponse JSON 객체가 됩니다:
Is this page helpful?