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 number

  • blockHash: 32 bytes - the block hash that corresponding the batch

  • proposer: Address - sequencer address

  • timestamp: QUANTITY - the timestamp of the batch

Example

Request

{
    "jsonrpc": "2.0",
    "method": "l2_getBatchState",
    "id": 0,
    "params": [
        "0x21"
    ]
}

Result

Last updated