JSON-RPC methods

Ethereum type JSON-RPC Methods

Pre-requisite Readings

Below is a list of Ethereum type JSON-RPC Methods where users can curl via local node. While you can also surf to our swagger playgroundfor a better understanding.

JSON-RPC Methods

Web3

Method
Namespace
Implemented
Public

web3_clientVersion

Web3

โœ”

โœ”

web3_sha3

Web3

โœ”

โœ”

Getting Blocks

Method
Namespace
Implemented
Public

eth_getBalance

Eth

โœ”

โœ”

eth_getBlockByNumber

Eth

โœ”

โœ”

eth_getBlockByHash

Eth

โœ”

โœ”

eth_getBlockReceipts

Eth

โœ”

โœ”

Read data

Method
Namespace
Implemented
Public

eth_call

Eth

โœ”

โœ”

eth_getTransactionByHash

Eth

โœ”

โœ”

eth_getTransactionCount

Eth

โœ”

โœ”

eth_getTransactionReceipt

Eth

โœ”

โœ”

eth_getBlockTransactionCountByNumber

Eth

โœ”

โœ”

eth_getBlockTransactionCountByHash

Eth

โœ”

โœ”

eth_getTransactionbyBlockNumberAndIndex

Eth

โœ”

โœ”

eth_getTransactionByBlockHashAndIndex

Eth

โœ”

โœ”

eth_sign

Eth

โœ”

eth_coinbase

Eth

โœ”

Writing data

Method
Namespace
Implemented
Public

eth_sendTransaction

Eth

โœ”

eth_sendRawTransaction

Eth

โœ”

โœ”

eth_sendPrivateTransaction

Eth

eth_cancelPrivateTransaction

Eth

Account

Method
Namespace
Implemented
Public

eth_getBalance

Eth

โœ”

โœ”

eth_getStorageAt

Eth

โœ”

โœ”

eth_getCode

Eth

โœ”

โœ”

eth_accounts

Eth

โœ”

eth_getProof

Eth

โœ”

Event Logs

Method
Namespace
Implemented
Public

eth_getLogs

Eth

โœ”

โœ”

eth_getFilterChanges

Eth

โœ”

eth_getFilterLogs

Eth

โœ”

eth_newBlockFilter

Eth

โœ”

eth_newFilter

Eth

โœ”

eth_newPendingTransactionFilter

Eth

โœ”

eth_uninstallFilter

Eth

โœ”

Chain

Method
Namespace
Implemented
Public

eth_protocolVersion

Eth

โœ”

โœ”

eth_gasPrice

Eth

โœ”

โœ”

eth_estimateGas

Eth

โœ”

โœ”

eth_feeHistory

Eth

โœ”

โœ”

eth_maxPriorityFeePerGas

Eth

โœ”

โœ”

eth_chainId

Eth

โœ”

โœ”

eth_syncing

Eth

โœ”

โœ”

eth_blockNumber

Eth

โœ”

โœ”

net_listening

Net

โœ”

โœ”

net_version

Net

โœ”

โœ”

net_peerCount

Net

โœ”

โœ”

Websocket

Method
Namespace
Implemented
Public

eth_subscribe

Websocket

โœ”

eth_unsubscribe

Websocket

โœ”

Tip Block Number can be entered as a Hex string, "earliest", "latest" or "pending".

When using batch requests, we currently only allow 3 objects for Mainnet and 5 objects for Testnet

JSON-RPC namespaces

Pre-requisite Readings

Ethereum Namespaces

Namespace
Description
Supported
Enabled by Default

eth

Cronos provides several extensions to the standard eth JSON-RPC namespace.

โœ”

โœ”

web3

The web3 API provides utility functions for the web3 client.

โœ”

โœ”

net

The net API provides access to network information of the node

โœ”

โœ”

clique

The clique API provides access to the state of the clique consensus engine. You can use this API to manage signer votes and to check the health of a private network.

โŒ

debug

The debug API gives you access to several non-standard RPC methods, which will allow you to inspect, debug and set certain debugging flags during runtime.

โœ”

les

The les API allows you to manage LES server settings, including client parameters and payment settings for prioritized clients. It also provides functions to query checkpoint information in both server and client mode.

โŒ

miner

The miner API allows you to remote control the nodeโ€™s mining operation and set various mining specific settings.

โœ”

โŒ

txpool

The txpool API gives you access to several non-standard RPC methods to inspect the contents of the transaction pool containing all the currently pending transactions as well as the ones queued for future processing.

โœ”

โŒ

admin

The admin API gives you access to several non-standard RPC methods, which will allow you to have a fine grained control over your nodeinstance, including but not limited to network peer and RPC endpoint management.

โŒ

personal

The personal API manages private keys in the key store.

โœ”

โŒ

Last updated

Was this helpful?