RPC API
Transports
Payload Structure
{
"id": 20, // a unique request identifier, may be a number or string
"jsonrpc": "2.0", // the jsonrpc version, 2.0 is the only currently accepted value
"method": "l2_getBlockByNumber", // the rpc method to call
"params": [1] // an array of parameters to pass to the method
}{
"id": 20,
"jsonrpc": "2.0",
"result": { ... },
}Methods
l1_address
l1_addressl1_getVKs
l1_getVKsl2_syncing
l2_syncingl2_blockCount
l2_blockCountl2_blockNumber
l2_blockNumberl2_getBlockByNumber
l2_getBlockByNumberl2_getBlockByIndex
l2_getBlockByIndexl2_getBlockByHash
l2_getBlockByHashl2_getTransactionByHash
l2_getTransactionByHashl2_getRegisteredTokens
l2_getRegisteredTokensLast updated