l2_getState

Return the state hash corresponding to batch.

Parameters

batchIndex: uint64|QUANTITY - specified batch number, enable hex-encoded and original string.

Returns

DATA: 32 Bytes - hash of a batch state.

Example

Request

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

params maybe ["1"] or ["0x1"]

Result

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

Last updated