RPC method SetBatchToLastBlock
SetBatchToLastBlock sets the mapping from batch ID to the last block ID in this batch.
| Name | Type | Constraints | Description |
|---|---|---|---|
| params | object | ||
| params.batchID | integer | Hexadecimal or decimal representation of a number. | |
| params.blockID | integer | Hexadecimal or decimal representation of a number. |
| Name | Type | Constraints | Description |
|---|---|---|---|
| result | string | Hexadecimal representation of a big integer. |
{
"jsonrpc": "2.0",
"id": "1234567890",
"method": "taikoAuth_SetBatchToLastBlock",
"params": {
"batchID": 10000,
"blockID": 10000
}
}
{
"jsonrpc": "2.0",
"id": "1234567890",
"result": "0x1234"
}
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 | string | Hexadecimal representation of a big integer. |
{
"jsonrpc": "2.0",
"id": "1234567890",
"method": "taikoAuth_SetHeadL1Origin",
"params": {
"blockID": 10000
}
}
{
"jsonrpc": "2.0",
"id": "1234567890",
"result": "0x1234"
}
RPC method SetL1OriginSignature
SetL1OriginSignature sets the L1 origin signature for the given block ID.
| Name | Type | Constraints | Description |
|---|---|---|---|
| params | object | ||
| params.blockID | integer | ||
| params.signature | 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_SetL1OriginSignature",
"params": {
"blockID": 10000,
"signature": "0x123456"
}
}
{
"jsonrpc": "2.0",
"id": "1234567890",
"result": {
"blockID": 10000,
"l1BlockHash": "0x123456",
"l1BlockHeight": 10000,
"l2BlockHash": "0x123456"
}
}
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"
}
}
RPC method LastBlockIDByBatchID
LastBlockIDByBatchID returns the ID of the last block for the given batch.
| Name | Type | Constraints | Description |
|---|---|---|---|
| params | object | ||
| params.batchID | integer | Hexadecimal or decimal representation of a number. |
| Name | Type | Constraints | Description |
|---|---|---|---|
| result | integer |
{
"jsonrpc": "2.0",
"id": "1234567890",
"method": "taiko_LastBlockIDByBatchID",
"params": {
"batchID": 10000
}
}
{
"jsonrpc": "2.0",
"id": "1234567890",
"result": 10000
}
RPC method LastL1OriginByBatchID
LastL1OriginByBatchID returns the L1 origin of the last block for the given batch.
| Name | Type | Constraints | Description |
|---|---|---|---|
| params | object | ||
| params.batchID | 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_LastL1OriginByBatchID",
"params": {
"batchID": 10000
}
}
{
"jsonrpc": "2.0",
"id": "1234567890",
"result": {
"blockID": 10000,
"l1BlockHash": "0x123456",
"l1BlockHeight": 10000,
"l2BlockHash": "0x123456"
}
}