rollup_getInfo
Returns useful L2-specific information about the current node.
Parameters:
Returns:
Example:
// Request
curl https://optimism.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"rollup_getInfo","params":[],"id":1}'
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"mode": "verifier",
"syncing": false,
"ethContext": {
"blockNumber": 16131692,
"timestamp": 1670402841
},
"rollupContext": {
"index": 46308439,
"queueIndex": 227091,
"verifiedIndex": 0
}
}
}Last updated
Was this helpful?