Skip to main content

rollup_getInfo

Returns useful L2-specific information about the current node.

Returns useful L2-specific information about the current node.

Parameters

none

Returns

  • mode: STRING - "sequencer" or "verifier" depending on the node's mode of operation
  • syncing: BOOLEAN - true if the node is currently syncing, false otherwise
  • ethContext: OBJECT
    • blockNumber: QUANTITY - Block number of the latest known L1 block
    • timestamp: QUANTITY - Timestamp of the latest known L1 block
  • rollupContext: OBJECT
    • queueIndex: QUANTITY - Index within the CTC of the last L1 to L2 message ingested
    • index: QUANTITY - Index of the last L2 tx processed
    • verifiedIndex: QUANTITY - Index of the last tx that was ingested from a batch that was posted to L1

Example

Request

curl https://metis-mainnet.blastapi.io/<project-id>
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"rollup_getInfo","params":[],"id":1}'

Result

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"mode": "verifier",
"syncing": false,
"ethContext": {
"blockNumber": 14828590,
"timestamp": 1653296548
},
"rollupContext": {
"index": 8826270,
"queueIndex": 94976,
"verifiedIndex": 0
}
}
}