[Block] kaia_getBlockWithConsensusInfoByNumberRange
Returns a block with consensus information matched by the given block hash or block number.
JSONRPC: kaia_getBlockWithConsensusInfoByNumberRange
Request
- application/json
Body
Array [
- IntegerBlockNumber
- HexadecimalBlockNumber
- BlockTag
- BlockHash
]
params
undefined[]
BlockNumberOrHashOrTag
object
oneOf
the block number with type integer
number
the block number with type hexadecimal
string
the block tag [latest, pending, earliest]
string
the block hash
string
Responses
- 200
Returns a block with consensus information matched by the given block hash or block number.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
error
object
A Number that indicates the error type that occurred. This MUST be an integer.
code | message | description |
---|---|---|
-32700 | Parse error | invalid JSON was received by the server. An error occurred on the server while parsing the JSON text. |
-32602 | Invalid params | Invalid method parameter(s). |
A String providing a short description of the error. The message SHOULD be limited to a concise single sentence.
A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.).
result
object
Object - A block object with consensus information (a proposer and a list of committee members)
transactions
object[]
signatures
object[]
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": {
"blockscore": "0x1",
"committee": [
"0x715dd3ce7a285f21111715a2ba5537414d40506b",
"0x71959675eeb7c7ec1e0c74f206a9c488d7f178d4"
],
"extraData": "0xd7820a01846b6c617988676f312e31312e32856c696e75780000000000000000f8b3ea94715dd3ce7a285f21111715a2ba5537414d40506b9471959675eeb7c7ec1e0c74f206a9c488d7f178d4b8418e55cfb464eed804671bbee503f2dcacae9349f23aa3c42fc43349f96ef08bb07c1039541a3b768af32384c8e29ec7e673356a6b0ea4c6d88604ae8abae4303201f843b841386a3fbd09cd3a7c82c0b8fdc9ae8c3e624be5f12553dde42bed456093e40c113aa36fb7015b578611e2cd2ee979e6017b15be7d3cc645f455b32e8607c85d7100",
"gasUsed": "0x5208",
"governanceData": "0x",
"hash": "0x6ccef34eb59fab927705d344f080f449b576c0626e4aa3e20f569feb8df6e283",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"number": "0x4a99",
"parentHash": "0x3b56b598828368d86b175a78ba21845125372851154840c6b1b318da910849c2",
"proposer": "0x715dd3ce7a285f21111715a2ba5537414d40506b",
"receiptsRoot": "0xe38e5532717f12f769b07ea016014bd39b74fb72def4de8442114cc2728609f2",
"reward": "0x59e6931f46b091f4ecbc39e8626fc0be7d3fcdeb",
"size": "0x314",
"stateRoot": "0xc65b3e3f1c32c33c095507d6d37e2a8a5589b178b5b03a1365295908ac92c40c",
"timestamp": "0x5d11f951",
"timestampFoS": "0x0",
"totalBlockScore": "0x4a9a",
"transactions": [
{
"blockHash": "0x6ccef34eb59fab927705d344f080f449b576c0626e4aa3e20f569feb8df6e283",
"blockNumber": "0x4a99",
"contractAddress": null,
"from": "0x71959675eeb7c7ec1e0c74f206a9c488d7f178d4",
"gas": "0x493e0",
"gasPrice": "0x5d21dba00",
"gasUsed": "0x5208",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x2",
"senderTxHash": "0xac418c96f7386a3343d149eeb29e48e28905525dda2e5afe55b0661f9ab01aca",
"signatures": [
{
"V": "0x4e43",
"R": "0xa857ef0676d7e65697cadeaf1654b2facd71d0b9f942d695f3972a1f7c34c25c",
"S": "0x43fba9e5c2c16511f951e27957f1279ea3c1f913b27f9fbb2a8dcb5884e37e3d"
}
],
"status": "0x1",
"to": "0xef5cd886c7f8d85fbe8023291761341acbb4da01",
"transactionHash": "0xac418c96f7386a3343d149eeb29e48e28905525dda2e5afe55b0661f9ab01aca",
"transactionIndex": "0x0",
"type": "TxTypeValueTransfer",
"typeInt": 8,
"value": "0xde0b6b3a7640000"
}
],
"transactionsRoot": "0xac418c96f7386a3343d149eeb29e48e28905525dda2e5afe55b0661f9ab01aca",
"voteData": "0x"
}
}