Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 506 Bytes

File metadata and controls

30 lines (22 loc) · 506 Bytes
description Returns the latest batch number

zkevm_batchNumber

Parameters:

None

Returns:

String - the hex representation of latest batch number

Example:

{% code overflow="wrap" %}

// Request
curl https://merlin.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json"
--data '{"jsonrpc":"2.0","method":"zkevm_batchNumber","params":[],"id":1}'

// Result
{
    "id": 1,
    "jsonrpc": "2.0",
    "result": "0x1dbb1c"
}

{% endcode %}