RPC method SetHeadL1Origin
SetHeadL1Origin sets the latest L2 block's corresponding L1 origin.
Name | Type | Constraints | Description |
---|---|---|---|
params | object | ||
params.blockID | integer | Hexadecimal or decimal representation of a number. |
Name | Type | Constraints | Description |
---|---|---|---|
result | integer |
{ "jsonrpc": "2.0", "id": "1234567890", "method": "taikoAuth_SetHeadL1Origin", "params": { "blockID": 10000 } }
{ "jsonrpc": "2.0", "id": "1234567890", "result": 10000 }
RPC method TxPoolContent
TxPoolContent retrieves the transaction pool content with the given upper limits.
Name | Type | Constraints | Description |
---|---|---|---|
params | object | ||
params.baseFee | integer | ||
params.beneficiary | string | ||
params.blockMaxGasLimit | integer | ||
params.locals | array | ||
params.locals[] | string | ||
params.maxBytesPerTxList | integer | ||
params.maxTransactionsLists | integer |
Name | Type | Constraints | Description |
---|---|---|---|
result | array | ||
result[] | object | ||
result[].BytesLength | integer | ||
result[].EstimatedGasUsed | integer | ||
result[].TxList | array |
{ "jsonrpc": "2.0", "id": "1234567890", "method": "taikoAuth_TxPoolContent", "params": { "baseFee": 10000, "beneficiary": "0x123456", "blockMaxGasLimit": 10000, "locals": [ "0x123456" ], "maxBytesPerTxList": 10000, "maxTransactionsLists": 10000 } }
{ "jsonrpc": "2.0", "id": "1234567890", "result": [ { "BytesLength": 10000, "EstimatedGasUsed": 10000, "TxList": [ null ] } ] }
RPC method TxPoolContentWithMinTip
TxPoolContentWithMinTip retrieves the transaction pool content with the given upper limits and minimum tip.
Name | Type | Constraints | Description |
---|---|---|---|
params | object | ||
params.baseFee | integer | ||
params.beneficiary | string | ||
params.blockMaxGasLimit | integer | ||
params.locals | array | ||
params.locals[] | string | ||
params.maxBytesPerTxList | integer | ||
params.maxTransactionsLists | integer | ||
params.minTip | integer |
Name | Type | Constraints | Description |
---|---|---|---|
result | array | ||
result[] | object | ||
result[].BytesLength | integer | ||
result[].EstimatedGasUsed | integer | ||
result[].TxList | array |
{ "jsonrpc": "2.0", "id": "1234567890", "method": "taikoAuth_TxPoolContentWithMinTip", "params": { "baseFee": 10000, "beneficiary": "0x123456", "blockMaxGasLimit": 10000, "locals": [ "0x123456" ], "maxBytesPerTxList": 10000, "maxTransactionsLists": 10000, "minTip": 10000 } }
{ "jsonrpc": "2.0", "id": "1234567890", "result": [ { "BytesLength": 10000, "EstimatedGasUsed": 10000, "TxList": [ null ] } ] }
RPC method UpdateL1Origin
UpdateL1Origin updates the L2 block's corresponding L1 origin.
Name | Type | Constraints | Description |
---|---|---|---|
params | object | ||
params.l1Origin | object | ||
params.l1Origin.blockID | integer | ||
params.l1Origin.l1BlockHash | string | ||
params.l1Origin.l1BlockHeight | integer | ||
params.l1Origin.l2BlockHash | string |
Name | Type | Constraints | Description |
---|---|---|---|
result | object | ||
result.blockID | integer | ||
result.l1BlockHash | string | ||
result.l1BlockHeight | integer | ||
result.l2BlockHash | string |
{ "jsonrpc": "2.0", "id": "1234567890", "method": "taikoAuth_UpdateL1Origin", "params": { "l1Origin": { "blockID": 10000, "l1BlockHash": "0x123456", "l1BlockHeight": 10000, "l2BlockHash": "0x123456" } } }
{ "jsonrpc": "2.0", "id": "1234567890", "result": { "blockID": 10000, "l1BlockHash": "0x123456", "l1BlockHeight": 10000, "l2BlockHash": "0x123456" } }
RPC method GetSyncMode
GetSyncMode returns the node sync mode.
Name | Type | Constraints | Description |
---|---|---|---|
result | string |
{ "jsonrpc": "2.0", "id": "1234567890", "method": "taiko_GetSyncMode" }
{ "jsonrpc": "2.0", "id": "1234567890", "result": "0x123456" }
RPC method HeadL1Origin
HeadL1Origin returns the latest L2 block's corresponding L1 origin.
Name | Type | Constraints | Description |
---|---|---|---|
result | object | ||
result.blockID | integer | ||
result.l1BlockHash | string | ||
result.l1BlockHeight | integer | ||
result.l2BlockHash | string |
{ "jsonrpc": "2.0", "id": "1234567890", "method": "taiko_HeadL1Origin" }
{ "jsonrpc": "2.0", "id": "1234567890", "result": { "blockID": 10000, "l1BlockHash": "0x123456", "l1BlockHeight": 10000, "l2BlockHash": "0x123456" } }
RPC method L1OriginByID
L1OriginByID returns the L2 block's corresponding L1 origin.
Name | Type | Constraints | Description |
---|---|---|---|
params | object | ||
params.blockID | integer | Hexadecimal or decimal representation of a number. |
Name | Type | Constraints | Description |
---|---|---|---|
result | object | ||
result.blockID | integer | ||
result.l1BlockHash | string | ||
result.l1BlockHeight | integer | ||
result.l2BlockHash | string |
{ "jsonrpc": "2.0", "id": "1234567890", "method": "taiko_L1OriginByID", "params": { "blockID": 10000 } }
{ "jsonrpc": "2.0", "id": "1234567890", "result": { "blockID": 10000, "l1BlockHash": "0x123456", "l1BlockHeight": 10000, "l2BlockHash": "0x123456" } }