l2_getBatchIndex

return the index of rollup batch which contains specific block

Parameters

  • blockNumber: uint64 - the chosen block number.

Returns

  • batchIndex: QUANTITY - the index of rollup batch which containing specific block

Example

Request

{
    "jsonrpc": "2.0",
    "method": "l2_getBatchIndex",
    "id": 0,
    "params": [1]
}

Result

{"jsonrpc":"2.0","id":0,"result":"0x0"}

Last updated