Home

ZetaChain - gRPC Gateway docs

v1.0.0
Base URL
https://zetachain.nownodes.io

Documentation for the API of ZetaChain.

Authentication

api-keyAuthapiKey

API Key: api-key in header

MAINNET / API Referense

Ethermint

Account queries an Ethereum account.

GET
https://zetachain.nownodes.io/ethermint/evm/v1/account/{address}

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Parameters

addressstringrequiredpath

address is the ethereum hex address to query the account for.

Response

200OK

A successful response.

default

An unexpected error response.

Balance queries the balance of a the EVM denomination for a single EthAccount.

GET
https://zetachain.nownodes.io/ethermint/evm/v1/balances/{address}

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Parameters

addressstringrequiredpath

address is the ethereum hex address to query the balance for.

Response

200OK

A successful response.

default

An unexpected error response.

BaseFee queries the base fee of the parent block of the current block, it's similar to feemarket module's method, but also checks london hardfork status.

GET
https://zetachain.nownodes.io/ethermint/evm/v1/base_fee

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Response

200OK

A successful response.

default

An unexpected error response.

Code queries the balance of all coins for a single account.

GET
https://zetachain.nownodes.io/ethermint/evm/v1/codes/{address}

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Parameters

addressstringrequiredpath

address is the ethereum hex address to query the code for.

Response

200OK

A successful response.

default

An unexpected error response.

CosmosAccount queries an Ethereum account's Cosmos Address.

GET
https://zetachain.nownodes.io/ethermint/evm/v1/cosmos_account/{address}

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Parameters

addressstringrequiredpath

address is the ethereum hex address to query the account for.

Response

200OK

A successful response.

default

An unexpected error response.

EstimateGas implements the eth_estimateGas rpc api

GET
https://zetachain.nownodes.io/ethermint/evm/v1/estimate_gas

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Parameters

argsstring<byte>query

args uses the same json format as the json rpc api.

gas_capstring<uint64>query

gas_cap defines the default gas cap to be used.

proposer_addressstring<byte>query

proposer_address of the requested block in hex format.

chain_idstring<int64>query

chain_id is the eip155 chain id parsed from the requested block header.

Response

200OK

A successful response.

default

An unexpected error response.

EthCall implements the eth_call rpc api

GET
https://zetachain.nownodes.io/ethermint/evm/v1/eth_call

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Parameters

argsstring<byte>query

args uses the same json format as the json rpc api.

gas_capstring<uint64>query

gas_cap defines the default gas cap to be used.

proposer_addressstring<byte>query

proposer_address of the requested block in hex format.

chain_idstring<int64>query

chain_id is the eip155 chain id parsed from the requested block header.

Response

200OK

A successful response.

default

An unexpected error response.

Params queries the parameters of x/evm module.

GET
https://zetachain.nownodes.io/ethermint/evm/v1/params

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Response

200OK

A successful response.

default

An unexpected error response.

Storage queries the balance of all coins for a single account.

GET
https://zetachain.nownodes.io/ethermint/evm/v1/storage/{address}/{key}

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Parameters

addressstringrequiredpath

address is the ethereum hex address to query the storage state for.

keystringrequiredpath

key defines the key of the storage state

Response

200OK

A successful response.

default

An unexpected error response.

TraceBlock implements the debug_traceBlockByNumber and debug_traceBlockByHash rpc api

GET
https://zetachain.nownodes.io/ethermint/evm/v1/trace_block

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Parameters

trace_config.tracerstringquery

tracer is a custom javascript tracer.

trace_config.timeoutstringquery

timeout overrides the default timeout of 5 seconds for JavaScript-based tracing calls.

trace_config.reexecstring<uint64>query

reexec defines the number of blocks the tracer is willing to go back.

trace_config.disable_stackbooleanquery

disable_stack switches stack capture.

trace_config.disable_storagebooleanquery

disable_storage switches storage capture.

trace_config.debugbooleanquery

debug can be used to print output during capture end.

trace_config.limitinteger<int32>query

limit defines the maximum length of output, but zero means unlimited.

trace_config.overrides.homestead_blockstringquery

homestead_block switch (nil no fork, 0 = already homestead).

trace_config.overrides.dao_fork_blockstringquery

dao_fork_block corresponds to TheDAO hard-fork switch block (nil no fork).

trace_config.overrides.dao_fork_supportbooleanquery

dao_fork_support defines whether the nodes supports or opposes the DAO hard-fork.

trace_config.overrides.eip150_blockstringquery

eip150_block: EIP150 implements the Gas price changes (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (nil no fork).

trace_config.overrides.eip150_hashstringquery

eip150_hash: EIP150 HF hash (needed for header only clients as only gas pricing changed).

trace_config.overrides.eip155_blockstringquery

eip155_block: EIP155Block HF block.

trace_config.overrides.eip158_blockstringquery

eip158_block: EIP158 HF block.

trace_config.overrides.byzantium_blockstringquery

byzantium_block: Byzantium switch block (nil no fork, 0 = already on byzantium).

trace_config.overrides.constantinople_blockstringquery

constantinople_block: Constantinople switch block (nil no fork, 0 = already activated).

trace_config.overrides.petersburg_blockstringquery

petersburg_block: Petersburg switch block (nil same as Constantinople).

trace_config.overrides.istanbul_blockstringquery

istanbul_block: Istanbul switch block (nil no fork, 0 = already on istanbul).

trace_config.overrides.muir_glacier_blockstringquery

muir_glacier_block: Eip-2384 (bomb delay) switch block (nil no fork, 0 = already activated).

trace_config.overrides.berlin_blockstringquery

berlin_block: Berlin switch block (nil = no fork, 0 = already on berlin).

trace_config.overrides.london_blockstringquery

london_block: London switch block (nil = no fork, 0 = already on london).

trace_config.overrides.arrow_glacier_blockstringquery

arrow_glacier_block: Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated).

trace_config.overrides.gray_glacier_blockstringquery

gray_glacier_block: EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already activated).

trace_config.overrides.merge_netsplit_blockstringquery

merge_netsplit_block: Virtual fork after The Merge to use as a network splitter.

trace_config.overrides.shanghai_blockstringquery

shanghai_block switch block (nil = no fork, 0 = already on shanghai).

trace_config.overrides.cancun_blockstringquery

cancun_block switch block (nil = no fork, 0 = already on cancun).

trace_config.enable_memorybooleanquery

enable_memory switches memory capture.

trace_config.enable_return_databooleanquery

enable_return_data switches the capture of return data.

trace_config.tracer_json_configstringquery

tracer_json_config configures the tracer using a JSON string.

block_numberstring<int64>query

block_number of the traced block.

block_hashstringquery

block_hash (hex) of the traced block.

block_timestring<date-time>query

block_time of the traced block.

proposer_addressstring<byte>query

proposer_address is the address of the requested block.

chain_idstring<int64>query

chain_id is the eip155 chain id parsed from the requested block header.

Response

200OK

A successful response.

default

An unexpected error response.

TraceTx implements the debug_traceTransaction rpc api

GET
https://zetachain.nownodes.io/ethermint/evm/v1/trace_tx

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Parameters

msg.data.type_urlstringquery

A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one "/" character. The last segment of the URL's path must represent the fully qualified name of the type (as in path/google.protobuf.Duration). The name should be in a canonical form (e.g., leading "." is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme http, https, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows:

  • If no scheme is provided, https is assumed.

  • An HTTP GET on the URL must yield a [google.protobuf.Type][]

    value in binary format, or produce an error.

  • Applications are allowed to cache lookup results based on the

    URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)

Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than http, https (or the empty scheme) might be used with implementation specific semantics.

msg.data.valuestring<byte>query

Must be a valid serialized protocol buffer of the above specified type.

msg.sizenumber<double>query

size is the encoded storage size of the transaction (DEPRECATED).

msg.hashstringquery

hash of the transaction in hex format.

msg.fromstringquery

from is the ethereum signer address in hex format. This address value is checked against the address derived from the signature (V, R, S) using the secp256k1 elliptic curve.

trace_config.tracerstringquery

tracer is a custom javascript tracer.

trace_config.timeoutstringquery

timeout overrides the default timeout of 5 seconds for JavaScript-based tracing calls.

trace_config.reexecstring<uint64>query

reexec defines the number of blocks the tracer is willing to go back.

trace_config.disable_stackbooleanquery

disable_stack switches stack capture.

trace_config.disable_storagebooleanquery

disable_storage switches storage capture.

trace_config.debugbooleanquery

debug can be used to print output during capture end.

trace_config.limitinteger<int32>query

limit defines the maximum length of output, but zero means unlimited.

trace_config.overrides.homestead_blockstringquery

homestead_block switch (nil no fork, 0 = already homestead).

trace_config.overrides.dao_fork_blockstringquery

dao_fork_block corresponds to TheDAO hard-fork switch block (nil no fork).

trace_config.overrides.dao_fork_supportbooleanquery

dao_fork_support defines whether the nodes supports or opposes the DAO hard-fork.

trace_config.overrides.eip150_blockstringquery

eip150_block: EIP150 implements the Gas price changes (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (nil no fork).

trace_config.overrides.eip150_hashstringquery

eip150_hash: EIP150 HF hash (needed for header only clients as only gas pricing changed).

trace_config.overrides.eip155_blockstringquery

eip155_block: EIP155Block HF block.

trace_config.overrides.eip158_blockstringquery

eip158_block: EIP158 HF block.

trace_config.overrides.byzantium_blockstringquery

byzantium_block: Byzantium switch block (nil no fork, 0 = already on byzantium).

trace_config.overrides.constantinople_blockstringquery

constantinople_block: Constantinople switch block (nil no fork, 0 = already activated).

trace_config.overrides.petersburg_blockstringquery

petersburg_block: Petersburg switch block (nil same as Constantinople).

trace_config.overrides.istanbul_blockstringquery

istanbul_block: Istanbul switch block (nil no fork, 0 = already on istanbul).

trace_config.overrides.muir_glacier_blockstringquery

muir_glacier_block: Eip-2384 (bomb delay) switch block (nil no fork, 0 = already activated).

trace_config.overrides.berlin_blockstringquery

berlin_block: Berlin switch block (nil = no fork, 0 = already on berlin).

trace_config.overrides.london_blockstringquery

london_block: London switch block (nil = no fork, 0 = already on london).

trace_config.overrides.arrow_glacier_blockstringquery

arrow_glacier_block: Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated).

trace_config.overrides.gray_glacier_blockstringquery

gray_glacier_block: EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already activated).

trace_config.overrides.merge_netsplit_blockstringquery

merge_netsplit_block: Virtual fork after The Merge to use as a network splitter.

trace_config.overrides.shanghai_blockstringquery

shanghai_block switch block (nil = no fork, 0 = already on shanghai).

trace_config.overrides.cancun_blockstringquery

cancun_block switch block (nil = no fork, 0 = already on cancun).

trace_config.enable_memorybooleanquery

enable_memory switches memory capture.

trace_config.enable_return_databooleanquery

enable_return_data switches the capture of return data.

trace_config.tracer_json_configstringquery

tracer_json_config configures the tracer using a JSON string.

block_numberstring<int64>query

block_number of requested transaction.

block_hashstringquery

block_hash of requested transaction.

block_timestring<date-time>query

block_time of requested transaction.

proposer_addressstring<byte>query

proposer_address is the proposer of the requested block.

chain_idstring<int64>query

chain_id is the the eip155 chain id parsed from the requested block header.

Response

200OK

A successful response.

default

An unexpected error response.

ValidatorAccount queries an Ethereum account's from a validator consensus Address.

GET
https://zetachain.nownodes.io/ethermint/evm/v1/validator_account/{cons_address}

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Parameters

cons_addressstringrequiredpath

cons_address is the validator cons address to query the account for.

Response

200OK

A successful response.

default

An unexpected error response.