Ethereum JSON-RPC

The JSON-PRC Server provides an API that allows you to connect to the Neura blockchain and interact with the EVM. This gives you direct access to reading Ethereum-formatted transactions or sending them to the network which otherwise wouldn't be possible on a Cosmos chain, such as Neura.

JSON-RPC is a stateless, light-weight remote procedure call (RPC) protocol. It defines several data structures and the rules around their processing. JSON-RPC is provided on multiple transports. Neura supports JSON-RPC over HTTP and WebSocket. Transports must be enabled through command-line flags or through the `app.toml` configuration file. It uses JSON (RFC 4627) as data format.

More on Ethereum JSON-RPC:

JSON-RPC over HTTP

Neura supports most of the standard web3 JSON-RPC APIs to connect with existing Ethereum-compatible web3 tooling over HTTP. Ethereum JSON-RPC APIs use a namespace system. RPC methods are grouped into several categories depending on their purpose. All method names are composed of the namespace, an underscore, and the actual method name within the namespace. For example, the eth_call method resides in the eth namespace. Access to RPC methods can be enabled on a per-namespace basis.

Find below the JSON-RPC namespaces supported on Neura or head over to the documentation for the individual API endpoints and their respective curl commands on the JSON-RPC Methods page.

NamespaceDescriptionSupportedEnabled by Default

eth

Neura 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 node instance, including but not limited to network peer and RPC endpoint management.

🚫

personal

The personal API manages private keys in the key store.

βœ”

🚫

Last updated