Skip to content

Latest commit

 

History

History
63 lines (35 loc) · 7.92 KB

File metadata and controls

63 lines (35 loc) · 7.92 KB

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

MethodNamespaceImplementedPublic
web3_clientVersionWeb3
web3_sha3Web3

Getting Blocks

MethodNamespaceImplementedPublic
eth_getBalanceEth
eth_getBlockByNumberEth
eth_getBlockByHashEth

Read data

MethodNamespaceImplementedPublic
eth_callEth
eth_getTransactionByHashEth
eth_getTransactionCountEth
eth_getTransactionReceiptEth
eth_getBlockTransactionCountByNumberEth
eth_getBlockTransactionCountByHashEth
eth_getTransactionbyBlockNumberAndIndexEth
eth_getTransactionByBlockHashAndIndexEth
eth_signEth
eth_coinbaseEth

Writing data

MethodNamespaceImplementedPublic
eth_sendTransactionEth
eth_sendRawTransactionEth
eth_sendPrivateTransactionEth
eth_cancelPrivateTransactionEth

Account

MethodNamespaceImplementedPublic
eth_getBalanceEth
eth_getStorageAtEth
eth_getCodeEth
eth_accountsEth
eth_getProofEth

Event Logs

MethodNamespaceImplementedPublic
eth_getLogsEth
eth_getFilterChangesEth
eth_getFilterLogsEth
eth_newBlockFilterEth
eth_newFilterEth
eth_newPendingTransactionFilterEth
eth_uninstallFilterEth

Chain

MethodNamespaceImplementedPublic
eth_protocolVersionEth
eth_gasPriceEth
eth_estimateGasEth
eth_feeHistoryEth
eth_maxPriorityFeePerGasEth
eth_chainIdEth
eth_syncingEth
eth_blockNumberEth
net_listeningNet
net_versionNet
net_peerCountNet

Websocket

MethodNamespaceImplementedPublic
eth_subscribeWebsocket
eth_unsubscribeWebsocket

{% hint style="info" %} Tip
Block Number can be entered as a Hex string, "earliest", "latest" or "pending". {% endhint %}

{% hint style="info" %} When using batch requests, we currently only allow 3 objects for Mainnet and 5 objects for Testnet {% endhint %}

JSON-RPC namespaces

Pre-requisite Readings

Ethereum Namespaces

NamespaceDescriptionSupportedEnabled by Default
ethCronos provides several extensions to the standard eth JSON-RPC namespace.
web3The web3 API provides utility functions for the web3 client.
netThe net API provides access to network information of the node
cliqueThe 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.
debugThe 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.
lesThe 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.
minerThe miner API allows you to remote control the node’s mining operation and set various mining specific settings.
txpoolThe 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.
adminThe 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.
personalThe personal API manages private keys in the key store.