Auto-generated JSON-RPC API for Taiko backend.

taikoAuth_SetHeadL1Origin
taikoAuth_

RPC method SetHeadL1Origin

SetHeadL1Origin sets the latest L2 block's corresponding L1 origin.


Parameters
Name Type Constraints Description
params object
params.blockID integer Hexadecimal or decimal representation of a number.
Result
Name Type Constraints Description
result integer
Request example
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "method": "taikoAuth_SetHeadL1Origin",
  "params": {
    "blockID": 10000
  }
}
Response example
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "result": 10000
}

taikoAuth_TxPoolContent
taikoAuth_

RPC method TxPoolContent

TxPoolContent retrieves the transaction pool content with the given upper limits.


Parameters
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
Result
Name Type Constraints Description
result array
result[] object
result[].BytesLength integer
result[].EstimatedGasUsed integer
result[].TxList array
Request example
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "method": "taikoAuth_TxPoolContent",
  "params": {
    "baseFee": 10000,
    "beneficiary": "0x123456",
    "blockMaxGasLimit": 10000,
    "locals": [
      "0x123456"
    ],
    "maxBytesPerTxList": 10000,
    "maxTransactionsLists": 10000
  }
}
Response example
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "result": [
    {
      "BytesLength": 10000,
      "EstimatedGasUsed": 10000,
      "TxList": [
        null
      ]
    }
  ]
}

taikoAuth_TxPoolContentWithMinTip
taikoAuth_

RPC method TxPoolContentWithMinTip

TxPoolContentWithMinTip retrieves the transaction pool content with the given upper limits and minimum tip.


Parameters
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
Result
Name Type Constraints Description
result array
result[] object
result[].BytesLength integer
result[].EstimatedGasUsed integer
result[].TxList array
Request example
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "method": "taikoAuth_TxPoolContentWithMinTip",
  "params": {
    "baseFee": 10000,
    "beneficiary": "0x123456",
    "blockMaxGasLimit": 10000,
    "locals": [
      "0x123456"
    ],
    "maxBytesPerTxList": 10000,
    "maxTransactionsLists": 10000,
    "minTip": 10000
  }
}
Response example
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "result": [
    {
      "BytesLength": 10000,
      "EstimatedGasUsed": 10000,
      "TxList": [
        null
      ]
    }
  ]
}

taikoAuth_UpdateL1Origin
taikoAuth_

RPC method UpdateL1Origin

UpdateL1Origin updates the L2 block's corresponding L1 origin.


Parameters
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
Result
Name Type Constraints Description
result object
result.blockID integer
result.l1BlockHash string
result.l1BlockHeight integer
result.l2BlockHash string
Request example
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "method": "taikoAuth_UpdateL1Origin",
  "params": {
    "l1Origin": {
      "blockID": 10000,
      "l1BlockHash": "0x123456",
      "l1BlockHeight": 10000,
      "l2BlockHash": "0x123456"
    }
  }
}
Response example
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "result": {
    "blockID": 10000,
    "l1BlockHash": "0x123456",
    "l1BlockHeight": 10000,
    "l2BlockHash": "0x123456"
  }
}

taiko_GetSyncMode
taiko_

RPC method GetSyncMode

GetSyncMode returns the node sync mode.


Result
Name Type Constraints Description
result string
Request example
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "method": "taiko_GetSyncMode"
}
Response example
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "result": "0x123456"
}

taiko_HeadL1Origin
taiko_

RPC method HeadL1Origin

HeadL1Origin returns the latest L2 block's corresponding L1 origin.


Result
Name Type Constraints Description
result object
result.blockID integer
result.l1BlockHash string
result.l1BlockHeight integer
result.l2BlockHash string
Request example
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "method": "taiko_HeadL1Origin"
}
Response example
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "result": {
    "blockID": 10000,
    "l1BlockHash": "0x123456",
    "l1BlockHeight": 10000,
    "l2BlockHash": "0x123456"
  }
}

taiko_L1OriginByID
taiko_

RPC method L1OriginByID

L1OriginByID returns the L2 block's corresponding L1 origin.


Parameters
Name Type Constraints Description
params object
params.blockID integer Hexadecimal or decimal representation of a number.
Result
Name Type Constraints Description
result object
result.blockID integer
result.l1BlockHash string
result.l1BlockHeight integer
result.l2BlockHash string
Request example
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "method": "taiko_L1OriginByID",
  "params": {
    "blockID": 10000
  }
}
Response example
{
  "jsonrpc": "2.0",
  "id": "1234567890",
  "result": {
    "blockID": 10000,
    "l1BlockHash": "0x123456",
    "l1BlockHeight": 10000,
    "l2BlockHash": "0x123456"
  }
}