getBlock RPC Method
Though getBlock is supported, Solana Foundation recommends using jsonParsed encoding because it includes all transaction account keys (including those from Lookup Tables). To do this with JavaScript, please refer to the getParsedBlock RPC method.
매개변수
슬롯
정수
로딩 중...
객체
객체
로딩 중...
인코딩
문자열
로딩 중...
거래 내역
문자열
로딩 중...
rewards
부울
로딩 중...
헌신
문자열
로딩 중...
확정됨
문자열
로딩 중...
확인됨
문자열
로딩 중...
maxSupportedTransactionVersion
부울
로딩 중...
반품
결과
로딩 중...
blockHeight
로딩 중...
blockTime
로딩 중...
blockhash
로딩 중...
parentSlot
로딩 중...
previousBlockhash
로딩 중...
거래
로딩 중...
meta
로딩 중...
err
로딩 중...
수수료
로딩 중...
innerInstructions
로딩 중...
logMessages
로딩 중...
postBalances
로딩 중...
postTokenBalances
로딩 중...
preBalances
로딩 중...
preTokenBalances
로딩 중...
rewards
로딩 중...
pubkey
로딩 중...
lamports
로딩 중...
postBalance
로딩 중...
rewardType
로딩 중...
commission
로딩 중...
상태
로딩 중...
거래
로딩 중...
메시지
로딩 중...
accountKeys
로딩 중...
pubkey
로딩 중...
signer
로딩 중...
source
로딩 중...
writable
로딩 중...
instructions
로딩 중...
parsed
로딩 중...
정보
로딩 중...
clockSysvar
로딩 중...
slotHashesSysvar
로딩 중...
vote
로딩 중...
해시
로딩 중...
slots
로딩 중...
타임스탬프
로딩 중...
voteAccount
로딩 중...
voteAuthority
로딩 중...
유형
로딩 중...
program
로딩 중...
programId
로딩 중...
stackHeight
로딩 중...
recentBlockhash
로딩 중...
서명
로딩 중...
버전
로딩 중...
요청
답변
1{2"jsonrpc": "2.0",3"result": {4"blockHeight": 428,5"blockTime": null,6"blockhash": "3Eq21vXNB5s86c62bVuUfTeaMif1N2kUqRPBmGRJhyTA",7"parentSlot": 429,8"previousBlockhash": "mfcyqEXB3DnHXki6KjjmZck6YjmZLvpAByy2fj4nh6B",9"거래": [10{11"meta": {12"err": null,13"fee": 5000,14"innerInstructions": [],15"logMessages": [],16"postBalances": [17499998932500,1826858640,191,201,21122],23"postTokenBalances": [],24"preBalances": [25499998937500,2626858640,271,281,29130],31"preTokenBalances": [],32"rewards": null,33"status": {34"Ok": null35}36},37"transaction": {38"message": {39"accountKeys": [40"3UVYmECPPMZSCqWKfENfuoTv51fTDTWicX9xmBD2euKe",41"AjozzgE83A3x1sHNUR64hfH7zaEBWeMaFuAN9kQgujrc",42"SysvarS1otHashes111111111111111111111111111",43"SysvarC1ock11111111111111111111111111111111",44"Vote111111111111111111111111111111111111111"45],46"header": {47"numReadonlySignedAccounts": 0,48"numReadonlyUnsignedAccounts": 3,49"numRequiredSignatures": 150},51"instructions": [52{53"accounts": [541,552,563,57058],59"data": "37u9WtQpcm6ULa3WRQHmj49EPs4if7o9f1jSRVZpm2dvihR9C8jY4NqEwXUbLwx15HBSNcP1",60"programIdIndex": 461}62],63"recentBlockhash": "mfcyqEXB3DnHXki6KjjmZck6YjmZLvpAByy2fj4nh6B"64},65"signatures": [66"2nBhEBYYvfaAe16UMNqRHre4YNSskvuYgx3M6E4JP1oDYvZEJHvoPzyUidNgNX5r9sTyN1J9UxtbCXy2rqYcuyuv"67]68}69}70]71},72"id": 173}
1{2"jsonrpc": "2.0",3"result": {4"blockHeight": 428,5"blockTime": null,6"blockhash": "3Eq21vXNB5s86c62bVuUfTeaMif1N2kUqRPBmGRJhyTA",7"parentSlot": 429,8"previousBlockhash": "mfcyqEXB3DnHXki6KjjmZck6YjmZLvpAByy2fj4nh6B",9"거래": [10{11"meta": {12"err": null,13"fee": 5000,14"innerInstructions": [],15"logMessages": [],16"postBalances": [17499998932500,1826858640,191,201,21122],23"postTokenBalances": [],24"preBalances": [25499998937500,2626858640,271,281,29130],31"preTokenBalances": [],32"rewards": null,33"status": {34"Ok": null35}36},37"transaction": {38"message": {39"accountKeys": [40"3UVYmECPPMZSCqWKfENfuoTv51fTDTWicX9xmBD2euKe",41"AjozzgE83A3x1sHNUR64hfH7zaEBWeMaFuAN9kQgujrc",42"SysvarS1otHashes111111111111111111111111111",43"SysvarC1ock11111111111111111111111111111111",44"Vote111111111111111111111111111111111111111"45],46"header": {47"numReadonlySignedAccounts": 0,48"numReadonlyUnsignedAccounts": 3,49"numRequiredSignatures": 150},51"instructions": [52{53"accounts": [541,552,563,57058],59"data": "37u9WtQpcm6ULa3WRQHmj49EPs4if7o9f1jSRVZpm2dvihR9C8jY4NqEwXUbLwx15HBSNcP1",60"programIdIndex": 461}62],63"recentBlockhash": "mfcyqEXB3DnHXki6KjjmZck6YjmZLvpAByy2fj4nh6B"64},65"signatures": [66"2nBhEBYYvfaAe16UMNqRHre4YNSskvuYgx3M6E4JP1oDYvZEJHvoPzyUidNgNX5r9sTyN1J9UxtbCXy2rqYcuyuv"67]68}69}70]71},72"id": 173}