l2_getBatchIndex
Parameters
Returns
Example
{
"jsonrpc": "2.0",
"method": "l2_getBatchIndex",
"id": 0,
"params": [1]
}{"jsonrpc":"2.0","id":0,"result":"0x0"}Last updated
return the index of rollup batch which contains specific block
blockNumber: uint64 - the chosen block number.
batchIndex: QUANTITY - the index of rollup batch which containing specific block
Request
{
"jsonrpc": "2.0",
"method": "l2_getBatchIndex",
"id": 0,
"params": [1]
}Result
{"jsonrpc":"2.0","id":0,"result":"0x0"}Last updated