π CDK Erigon RPC Methods
CDK-Erigon RPC Methodsβ
Transaction Pool (txpool
)β
txpool_content
Description:β
Returns details of all pending and queued transactions in the transaction pool.
Parameters:β
None
Response:β
Returns an object containing:
- pending β A list of transactions waiting to be included in a block.
- queued β A list of transactions that are queued due to nonce gaps.
Example:β
{
"pending": { "0xSenderAddress": [{ "to": "0xReceiver", "value": "0x10" }] },
"queued": { "0xSenderAddress": [{ "to": "0xReceiver", "value": "0x20" }] }
}
txpool_contentFrom
Description:β
Fetches all pending and queued transactions from a specific sender.
Parameters:β
address
(string): The senderβs Ethereum address.
Response:β
Returns the list of transactions originating from the specified sender.
Example:β
{
"pending": [{ "to": "0xReceiver", "value": "0x10" }],
"queued": [{ "to": "0xReceiver", "value": "0x20" }]
}
txpool_limbo
zkEVM Methods (zkevm
)β
zkevm_batchNumber
zkevm_batchNumberByBlockNumber
zkevm_consolidatedBlockNumber
zkevm_estimateCounters
zkevm_getBatchByNumber
Description:β
Returns details about a specific batch by its number.
Parameters:β
batchNumber
(integer): The batch ID to fetch.
Response:β
Batch details, including block range, state root, and L1 commitment status.
Example:β
{
"batch": {
"batchNumber": 10045,
"blockRange": "100430-100450",
"stateRoot": "0xabcdef"
}
}
zkevm_getBatchCountersByNumber
zkevm_getBatchWitness
zkevm_getExitRootTable
zkevm_isBlockConsolidated
zkevm_verifiedBatchNumber
Other zkEVM Methodsβ
Method | Description |
---|---|
zkevm_getForkById | Fetches details of a specific fork by its ID. |
zkevm_getForks | Lists all available forks in the zkEVM environment. |
zkevm_getLatestDataStreamBlock | Retrieves the latest block in the data stream. |
zkevm_getLatestGlobalExitRoot | Returns the latest exit root for rollup transactions. |
zkevm_getRollupAddress | Fetches the rollup contract address. |
zkevm_getRollupManagerAddress | Retrieves the address of the rollup manager contract. |
zkevm_getVersionHistory | Returns a list of version upgrades and changes. |
Notes on Usageβ
- State Verification: Some calls return trusted vs. verified results, meaning finality may depend on L1 settlement.
- Performance Considerations: Calls returning large datasets (e.g.,
getWitness
) may take longer to execute. - Gas Considerations:
zkevm_estimateCounters
helps optimize transaction gas usage in zkEVM environments.
For more details, refer to the Polygon zkEVM API Documentation: Polygon zkEVM Docs.