本頁面使用機器翻譯自英語,可能包含錯誤或不清楚的語言。如需最準確的信息,請參閱英文原文。由於更新頻繁,部分內容可能與英文原文有出入。請加入我們在 Crowdin 上的努力,幫助我們改進本頁面的翻譯。 (Crowdin translation page, Contributing guide)
[Block] klay_getBlockReceipts
Returns receipts included in a block identified by block hash.
JSONRPC: klay_getBlockReceipts
Request
- application/json
Body
params 32-byte DATA[]required
Hash of a block
Responses
- 200
Receipts included in a block. If the target block contains no transaction, an empty array [] is returned.
- application/json
- Schema
- Example (from schema)
Schema
error
object
result object[]
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": [
{
"blockHash": "0xbbf314246e4b3578790ee48ada42111bc67708a4539373ccc2feb5d88833d839",
"blockNumber": "0x83db764",
"contractAddress": null,
"effectiveGasPrice": "0x5d21dba00",
"feePayer": "0x5e6b99bca5a21818d40d12c56194674989146fc8",
"feePayerSignatures": [
{
"V": "0x7f5",
"R": "0xfd3bf3bb2ee88b4a3399c0a87d21d1bd6f87f1510da495dad7d106774d882a95",
"S": "0x17f88f413d72e15a0352b594bb138f5150c0eb68b673a56852f25d0d3a01f161"
}
],
"from": "0x95b4cef2d1d6a0b22b339306cea3aff74548cf83",
"gas": "0x61a80",
"gasPrice": "0xba43b7400",
"gasUsed": "0x23b6e",
"input": "0x202ee0ed000000000000000000000000000000000000000000000000000000000000e92d000000000000000000000000000000000000000000000000000000172f6e3700",
"logs": [
{
"address": "0x5266b74a8063e08e603bfbfc1ede4d71b8245dcd",
"topics": [
"0x0109fc6f55cf40689f02fbaad7af7fe7bbac8a3d2186600afc7d3e10cac60271",
"0x000000000000000000000000000000000000000000000000000000000000e92d",
"0x00000000000000000000000095b4cef2d1d6a0b22b339306cea3aff74548cf83"
],
"data": "0x0000000000000000000000000000000000000000000000000000000065518cbe",
"blockNumber": "0x83db764",
"transactionHash": "0x3aed1cf24976a3f89944bb06825db8a1fb3df2741e16b1b1922d6d0db9357856",
"transactionIndex": "0x0",
"blockHash": "0xbbf314246e4b3578790ee48ada42111bc67708a4539373ccc2feb5d88833d839",
"logIndex": "0x0",
"removed": false
},
{
"address": "0x5266b74a8063e08e603bfbfc1ede4d71b8245dcd",
"topics": [
"0x92e98423f8adac6e64d0608e519fd1cefb861498385c6dee70d58fc926ddc68c",
"0x000000000000000000000000000000000000000000000000000000172f6e3700",
"0x000000000000000000000000000000000000000000000000000000000000e92d",
"0x00000000000000000000000095b4cef2d1d6a0b22b339306cea3aff74548cf83"
],
"data": "0x",
"blockNumber": "0x83db764",
"transactionHash": "0x3aed1cf24976a3f89944bb06825db8a1fb3df2741e16b1b1922d6d0db9357856",
"transactionIndex": "0x0",
"blockHash": "0xbbf314246e4b3578790ee48ada42111bc67708a4539373ccc2feb5d88833d839",
"logIndex": "0x1",
"removed": false
},
{
"address": "0x5266b74a8063e08e603bfbfc1ede4d71b8245dcd",
"topics": [
"0x0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f",
"0x000000000000000000000000000000000000000000000000000000172f6e3700",
"0x000000000000000000000000000000000000000000000000000000000000e92d"
],
"data": "0x0000000000000000000000000000000000000000000000000000000065518cbe",
"blockNumber": "0x83db764",
"transactionHash": "0x3aed1cf24976a3f89944bb06825db8a1fb3df2741e16b1b1922d6d0db9357856",
"transactionIndex": "0x0",
"blockHash": "0xbbf314246e4b3578790ee48ada42111bc67708a4539373ccc2feb5d88833d839",
"logIndex": "0x2",
"removed": false
}
],
"logsBloom": "0x00000000000000000020000000000000400000000000000000000000000000000000000000000000040000000020000000000000000200000000000000000000000000000000000000000000002000000000000001000000000100000000000000000000000000001000000000000001000000000400000000008000100000000000000000000000000000000000000000000c80000000000000000000000000000000001000000000000000000000000000000000000000000400000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000",
"nonce": "0xe92c",
"senderTxHash": "0x557b98f94afd1270ba13c9f71c0b9ab862437ff155850a63d798156641b62368",
"signatures": [
{
"V": "0x7f5",
"R": "0xc8817da92672f512af1573d50f998abd785013ba077760f7496550c0b98ea200",
"S": "0x16d5a6a393488f002d63596f55d7b3c2425feff71df23cf44f90d48c88841529"
}
],
"status": "0x1",
"to": "0x5266b74a8063e08e603bfbfc1ede4d71b8245dcd",
"transactionHash": "0x3aed1cf24976a3f89944bb06825db8a1fb3df2741e16b1b1922d6d0db9357856",
"transactionIndex": "0x0",
"type": "TxTypeFeeDelegatedSmartContractExecution",
"typeInt": 49,
"value": "0x0"
}
]
}
- curl
- python
- nodejs
- java
- Curl
curl -X 'POST' \
'https://public-en-kairos.node.kaia.io' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"method": "klay_getBlockReceipts",
"id": 73,
"jsonrpc": "2.0",
"params": ["0xba647d41423faeebe8a7c64737d284fc2eba6f0388a3e1ebf6243db509ec1577"]
}'
- CURL
curl -L 'https://public-en-kairos.node.kaia.io/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"method": "klay_getBlockReceipts",
"id": 1,
"jsonrpc": "2.0",
"params": [
"0xdc762ed0274496e2a42278e2648d910d82468687b5415bb5eb058a96a0b93c30"
]
}'
ResponseClear