l2_getBatchState
Return the state of batch.
Parameters
batchIndex: uint64|QUANTITY - specified batch number, enable hex-encoded and original string.
Returns
Object - A batch state object with the following fields:
index: QUANTITY - batch numberblockHash: 32 bytes - the block hash that corresponding the batchproposer: Address - sequencer addresstimestamp: QUANTITY - the timestamp of the batch
Example
Request
{
"jsonrpc": "2.0",
"method": "l2_getBatchState",
"id": 0,
"params": [
"0x21"
]
}Result
Last updated