JSON-RPC methods supported on Kaia Mainnet and Kaia Kairos through Tatum RPC Gateway, with base URLs and an example request.
Call Kaia JSON-RPC methods through Tatum RPC Gateway. Send an HTTP POST request with a JSON-RPC 2.0 body to the network's base URL, with your API key in the x-api-key header. See Authentication.
Base URLs
| Network | Base URL |
|---|---|
| Kaia Mainnet | https://kaia-mainnet.gateway.tatum.io |
| Kaia Kairos | https://kaia-kairos.gateway.tatum.io |
Example request
curl 'https://kaia-mainnet.gateway.tatum.io' \
--header 'content-type: application/json' \
--header 'x-api-key: {YOUR_API_KEY}' \
--data '{"jsonrpc":"2.0","method":"kaia_blockNumber","params":[],"id":1}'Methods
96 methods. Parameters and responses are described in the Kaia JSON-RPC API reference; linked method names go to their page there.
| Method | Description |
|---|---|
debug_getBadBlocks | Returns the last bad blocks the node has seen on the network. |
debug_storageRangeAt | Returns the storage of a contract at a given block and transaction index. |
debug_traceBlock | Replays all transactions of an RLP-encoded block and returns their traces. |
debug_traceBlockByHash | Replays all transactions of a block, selected by hash, and returns their traces. |
debug_traceBlockByNumber | Replays all transactions of a block, selected by number, and returns their traces. |
debug_traceCall | Runs a call on top of a given block without creating a transaction and returns its trace. |
debug_traceTransaction | Replays a transaction and returns its execution trace. |
eth_blockNumber | Returns the number of the most recent block. |
eth_call | Executes a message call immediately without creating a transaction on the chain. |
eth_callMany | Executes a list of message calls in sequence on top of a given block, without creating transactions. |
eth_chainId | Returns the chain ID used for signing replay-protected transactions. |
eth_estimateGas | Estimates the gas needed to execute a transaction without adding it to the chain. |
eth_feeHistory | Returns base fees, gas usage ratios and priority fee percentiles for a range of blocks. |
eth_gasPrice | Returns the current gas price in wei. |
eth_getBalance | Returns the balance of an address in wei. |
eth_getBlockByHash | Returns information about a block by hash. |
eth_getBlockByNumber | Returns information about a block by number. |
eth_getBlockReceipts | Returns the receipts of all transactions in a block. |
eth_getBlockTransactionCountByHash | Returns the number of transactions in a block, selected by hash. |
eth_getBlockTransactionCountByNumber | Returns the number of transactions in a block, selected by number. |
eth_getCode | Returns the bytecode at an address. |
eth_getLogs | Returns the logs that match a filter object. |
eth_getProof | Returns the Merkle proof of an account and, optionally, of some of its storage slots. |
eth_getStorageAt | Returns the value of a storage slot at an address. |
eth_getTransactionByBlockHashAndIndex | Returns a transaction by block hash and transaction index. |
eth_getTransactionByBlockNumberAndIndex | Returns a transaction by block number and transaction index. |
eth_getTransactionByHash | Returns a transaction by hash. |
eth_getTransactionCount | Returns the number of transactions sent from an address (its nonce). |
eth_getTransactionReceipt | Returns the receipt of a transaction by transaction hash. |
eth_getUncleByBlockHashAndIndex | Returns an uncle of a block, selected by block hash and uncle index. |
eth_getUncleByBlockNumberAndIndex | Returns an uncle of a block, selected by block number and uncle index. |
eth_getUncleCountByBlockHash | Returns the number of uncles in a block, selected by hash. |
eth_getUncleCountByBlockNumber | Returns the number of uncles in a block, selected by number. |
eth_maxPriorityFeePerGas | Returns a suggested priority fee (tip) per gas in wei. |
eth_sendRawTransaction | Submits a signed, RLP-encoded transaction to the network. |
eth_signTypedData | Signs EIP-712 typed structured data. |
eth_signTypedData_v3 | Signs EIP-712 typed structured data (version 3 of the format). |
eth_simulateV1 | Simulates a sequence of blocks and calls on top of a given block and returns the results. |
eth_syncing | Returns the sync status of the node, or false when it is not syncing. |
kaia_blockNumber | Returns the number of the most recent block. |
kaia_call | Executes a call without creating a transaction on the chain. |
kaia_chainId | Returns the chain ID of the network. |
kaia_estimateGas | Estimates the gas needed to execute a transaction without sending it. |
kaia_gasPrice | Returns the current suggested gas price in kei. |
kaia_getBalance | Returns the balance of an account at a given block. |
kaia_getBlockByHash | Returns a block by its hash. |
kaia_getBlockByNumber | Returns a block by its number. |
kaia_getBlockReceipts | Returns the receipts of all transactions in a block, identified by block hash. |
kaia_getBlockTransactionCountByHash | Returns the number of transactions in a block, by block hash. |
kaia_getBlockTransactionCountByNumber | Returns the number of transactions in a block, by block number. |
kaia_getCode | Returns the bytecode at a given address. |
kaia_getLogs | Returns the logs that match a given filter object. |
kaia_getStorageAt | Returns the value from a storage position at a given address. |
kaia_getTransactionByBlockHashAndIndex | Returns a transaction by block hash and transaction index. |
kaia_getTransactionByBlockNumberAndIndex | Returns a transaction by block number and transaction index. |
kaia_getTransactionByHash | Returns a transaction by its hash. |
kaia_getTransactionCount | Returns the number of transactions sent from an address (its nonce). |
kaia_getTransactionReceipt | Returns the receipt of a transaction by its hash. |
kaia_maxPriorityFeePerGas | Returns a recommended priority fee per gas for a new transaction. |
kaia_sendRawTransaction | Submits a signed, RLP-encoded transaction to the network. |
klay_blockNumber | Returns the number of the most recent block. Legacy alias of kaia_blockNumber. |
klay_call | Executes a call without creating a transaction on the chain. Legacy alias of kaia_call. |
klay_chainId | Returns the chain ID of the network. Legacy alias of kaia_chainId. |
klay_estimateGas | Estimates the gas needed to execute a transaction without sending it. Legacy alias of kaia_estimateGas. |
klay_gasPrice | Returns the current suggested gas price in kei. Legacy alias of kaia_gasPrice. |
klay_getBalance | Returns the balance of an account at a given block. Legacy alias of kaia_getBalance. |
klay_getBlockByHash | Returns a block by its hash. Legacy alias of kaia_getBlockByHash. |
klay_getBlockByNumber | Returns a block by its number. Legacy alias of kaia_getBlockByNumber. |
klay_getBlockReceipts | Returns the receipts of all transactions in a block, identified by block hash. Legacy alias of kaia_getBlockReceipts. |
klay_getBlockTransactionCountByHash | Returns the number of transactions in a block, by block hash. Legacy alias of kaia_getBlockTransactionCountByHash. |
klay_getBlockTransactionCountByNumber | Returns the number of transactions in a block, by block number. Legacy alias of kaia_getBlockTransactionCountByNumber. |
klay_getCode | Returns the bytecode at a given address. Legacy alias of kaia_getCode. |
klay_getLogs | Returns the logs that match a given filter object. Legacy alias of kaia_getLogs. |
klay_getRewards | Returns the reward distribution of a block, including rewardees and their shares. |
klay_getStorageAt | Returns the value from a storage position at a given address. Legacy alias of kaia_getStorageAt. |
klay_getTransactionByBlockHashAndIndex | Returns a transaction by block hash and transaction index. Legacy alias of kaia_getTransactionByBlockHashAndIndex. |
klay_getTransactionByBlockNumberAndIndex | Returns a transaction by block number and transaction index. Legacy alias of kaia_getTransactionByBlockNumberAndIndex. |
klay_getTransactionByHash | Returns a transaction by its hash. Legacy alias of kaia_getTransactionByHash. |
klay_getTransactionCount | Returns the number of transactions sent from an address (its nonce). Legacy alias of kaia_getTransactionCount. |
klay_getTransactionReceipt | Returns the receipt of a transaction by its hash. Legacy alias of kaia_getTransactionReceipt. |
klay_maxPriorityFeePerGas | Returns a recommended priority fee per gas for a new transaction. Legacy alias of kaia_maxPriorityFeePerGas. |
klay_sendRawTransaction | Submits a signed, RLP-encoded transaction to the network. Legacy alias of kaia_sendRawTransaction. |
net_listening | Returns true when the client is listening for network connections. |
net_peerCount | Returns the number of peers connected to the client. |
net_version | Returns the current network ID. |
trace_block | Returns the traces of all transactions in a block. |
trace_call | Runs a call and returns the requested traces (trace, vmTrace, stateDiff) without creating a transaction. |
trace_callMany | Runs a list of calls in sequence, each on top of the state of the previous one, and returns their traces. |
trace_rawTransaction | Traces a signed raw transaction without broadcasting it. |
trace_replayBlockTransactions | Replays all transactions of a block and returns the requested traces. |
trace_replayTransaction | Replays a transaction and returns the requested traces. |
trace_transaction | Returns all traces of a transaction. |
txpool_content | Returns the pending and queued transactions in the transaction pool. |
txpool_inspect | Returns a text summary of the pending and queued transactions in the transaction pool. |
txpool_status | Returns the number of pending and queued transactions in the transaction pool. |
web3_clientVersion | Returns the client version. |
The gateway lists its supported methods at runtime:
Method unavailable?If you need a method we don't support yet, contact support.