ZetaChain - gRPC Gateway docs
v1.0.0https://zetachain.nownodes.ioDocumentation for the API of ZetaChain.
Authentication
api-keyAuthapiKeyAPI Key: api-key in header
MAINNET / API Referense
Ethermint
Account queries an Ethereum account.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
addressstringrequiredpathaddress is the ethereum hex address to query the account for.
Response
A successful response.
An unexpected error response.
Balance queries the balance of a the EVM denomination for a single EthAccount.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
addressstringrequiredpathaddress is the ethereum hex address to query the balance for.
Response
A successful response.
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.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Code queries the balance of all coins for a single account.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
addressstringrequiredpathaddress is the ethereum hex address to query the code for.
Response
A successful response.
An unexpected error response.
CosmosAccount queries an Ethereum account's Cosmos Address.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
addressstringrequiredpathaddress is the ethereum hex address to query the account for.
Response
A successful response.
An unexpected error response.
EstimateGas implements the eth_estimateGas rpc api
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
argsstring<byte>queryargs uses the same json format as the json rpc api.
gas_capstring<uint64>querygas_cap defines the default gas cap to be used.
proposer_addressstring<byte>queryproposer_address of the requested block in hex format.
chain_idstring<int64>querychain_id is the eip155 chain id parsed from the requested block header.
Response
A successful response.
An unexpected error response.
EthCall implements the eth_call rpc api
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
argsstring<byte>queryargs uses the same json format as the json rpc api.
gas_capstring<uint64>querygas_cap defines the default gas cap to be used.
proposer_addressstring<byte>queryproposer_address of the requested block in hex format.
chain_idstring<int64>querychain_id is the eip155 chain id parsed from the requested block header.
Response
A successful response.
An unexpected error response.
Params queries the parameters of x/evm module.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
Storage queries the balance of all coins for a single account.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
addressstringrequiredpathaddress is the ethereum hex address to query the storage state for.
keystringrequiredpathkey defines the key of the storage state
Response
A successful response.
An unexpected error response.
TraceBlock implements the debug_traceBlockByNumber and debug_traceBlockByHash rpc api
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
trace_config.tracerstringquerytracer is a custom javascript tracer.
trace_config.timeoutstringquerytimeout overrides the default timeout of 5 seconds for JavaScript-based tracing calls.
trace_config.reexecstring<uint64>queryreexec defines the number of blocks the tracer is willing to go back.
trace_config.disable_stackbooleanquerydisable_stack switches stack capture.
trace_config.disable_storagebooleanquerydisable_storage switches storage capture.
trace_config.debugbooleanquerydebug can be used to print output during capture end.
trace_config.limitinteger<int32>querylimit defines the maximum length of output, but zero means unlimited.
trace_config.overrides.homestead_blockstringqueryhomestead_block switch (nil no fork, 0 = already homestead).
trace_config.overrides.dao_fork_blockstringquerydao_fork_block corresponds to TheDAO hard-fork switch block (nil no fork).
trace_config.overrides.dao_fork_supportbooleanquerydao_fork_support defines whether the nodes supports or opposes the DAO hard-fork.
trace_config.overrides.eip150_blockstringqueryeip150_block: EIP150 implements the Gas price changes (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (nil no fork).
trace_config.overrides.eip150_hashstringqueryeip150_hash: EIP150 HF hash (needed for header only clients as only gas pricing changed).
trace_config.overrides.eip155_blockstringqueryeip155_block: EIP155Block HF block.
trace_config.overrides.eip158_blockstringqueryeip158_block: EIP158 HF block.
trace_config.overrides.byzantium_blockstringquerybyzantium_block: Byzantium switch block (nil no fork, 0 = already on byzantium).
trace_config.overrides.constantinople_blockstringqueryconstantinople_block: Constantinople switch block (nil no fork, 0 = already activated).
trace_config.overrides.petersburg_blockstringquerypetersburg_block: Petersburg switch block (nil same as Constantinople).
trace_config.overrides.istanbul_blockstringqueryistanbul_block: Istanbul switch block (nil no fork, 0 = already on istanbul).
trace_config.overrides.muir_glacier_blockstringquerymuir_glacier_block: Eip-2384 (bomb delay) switch block (nil no fork, 0 = already activated).
trace_config.overrides.berlin_blockstringqueryberlin_block: Berlin switch block (nil = no fork, 0 = already on berlin).
trace_config.overrides.london_blockstringquerylondon_block: London switch block (nil = no fork, 0 = already on london).
trace_config.overrides.arrow_glacier_blockstringqueryarrow_glacier_block: Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated).
trace_config.overrides.gray_glacier_blockstringquerygray_glacier_block: EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already activated).
trace_config.overrides.merge_netsplit_blockstringquerymerge_netsplit_block: Virtual fork after The Merge to use as a network splitter.
trace_config.overrides.shanghai_blockstringqueryshanghai_block switch block (nil = no fork, 0 = already on shanghai).
trace_config.overrides.cancun_blockstringquerycancun_block switch block (nil = no fork, 0 = already on cancun).
trace_config.enable_memorybooleanqueryenable_memory switches memory capture.
trace_config.enable_return_databooleanqueryenable_return_data switches the capture of return data.
trace_config.tracer_json_configstringquerytracer_json_config configures the tracer using a JSON string.
block_numberstring<int64>queryblock_number of the traced block.
block_hashstringqueryblock_hash (hex) of the traced block.
block_timestring<date-time>queryblock_time of the traced block.
proposer_addressstring<byte>queryproposer_address is the address of the requested block.
chain_idstring<int64>querychain_id is the eip155 chain id parsed from the requested block header.
Response
A successful response.
An unexpected error response.
TraceTx implements the debug_traceTransaction rpc api
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
msg.data.type_urlstringqueryA 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,
httpsis 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>queryMust be a valid serialized protocol buffer of the above specified type.
msg.sizenumber<double>querysize is the encoded storage size of the transaction (DEPRECATED).
msg.hashstringqueryhash of the transaction in hex format.
msg.fromstringqueryfrom 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.tracerstringquerytracer is a custom javascript tracer.
trace_config.timeoutstringquerytimeout overrides the default timeout of 5 seconds for JavaScript-based tracing calls.
trace_config.reexecstring<uint64>queryreexec defines the number of blocks the tracer is willing to go back.
trace_config.disable_stackbooleanquerydisable_stack switches stack capture.
trace_config.disable_storagebooleanquerydisable_storage switches storage capture.
trace_config.debugbooleanquerydebug can be used to print output during capture end.
trace_config.limitinteger<int32>querylimit defines the maximum length of output, but zero means unlimited.
trace_config.overrides.homestead_blockstringqueryhomestead_block switch (nil no fork, 0 = already homestead).
trace_config.overrides.dao_fork_blockstringquerydao_fork_block corresponds to TheDAO hard-fork switch block (nil no fork).
trace_config.overrides.dao_fork_supportbooleanquerydao_fork_support defines whether the nodes supports or opposes the DAO hard-fork.
trace_config.overrides.eip150_blockstringqueryeip150_block: EIP150 implements the Gas price changes (https://github.com/ethereum/EIPs/issues/150) EIP150 HF block (nil no fork).
trace_config.overrides.eip150_hashstringqueryeip150_hash: EIP150 HF hash (needed for header only clients as only gas pricing changed).
trace_config.overrides.eip155_blockstringqueryeip155_block: EIP155Block HF block.
trace_config.overrides.eip158_blockstringqueryeip158_block: EIP158 HF block.
trace_config.overrides.byzantium_blockstringquerybyzantium_block: Byzantium switch block (nil no fork, 0 = already on byzantium).
trace_config.overrides.constantinople_blockstringqueryconstantinople_block: Constantinople switch block (nil no fork, 0 = already activated).
trace_config.overrides.petersburg_blockstringquerypetersburg_block: Petersburg switch block (nil same as Constantinople).
trace_config.overrides.istanbul_blockstringqueryistanbul_block: Istanbul switch block (nil no fork, 0 = already on istanbul).
trace_config.overrides.muir_glacier_blockstringquerymuir_glacier_block: Eip-2384 (bomb delay) switch block (nil no fork, 0 = already activated).
trace_config.overrides.berlin_blockstringqueryberlin_block: Berlin switch block (nil = no fork, 0 = already on berlin).
trace_config.overrides.london_blockstringquerylondon_block: London switch block (nil = no fork, 0 = already on london).
trace_config.overrides.arrow_glacier_blockstringqueryarrow_glacier_block: Eip-4345 (bomb delay) switch block (nil = no fork, 0 = already activated).
trace_config.overrides.gray_glacier_blockstringquerygray_glacier_block: EIP-5133 (bomb delay) switch block (nil = no fork, 0 = already activated).
trace_config.overrides.merge_netsplit_blockstringquerymerge_netsplit_block: Virtual fork after The Merge to use as a network splitter.
trace_config.overrides.shanghai_blockstringqueryshanghai_block switch block (nil = no fork, 0 = already on shanghai).
trace_config.overrides.cancun_blockstringquerycancun_block switch block (nil = no fork, 0 = already on cancun).
trace_config.enable_memorybooleanqueryenable_memory switches memory capture.
trace_config.enable_return_databooleanqueryenable_return_data switches the capture of return data.
trace_config.tracer_json_configstringquerytracer_json_config configures the tracer using a JSON string.
block_numberstring<int64>queryblock_number of requested transaction.
block_hashstringqueryblock_hash of requested transaction.
block_timestring<date-time>queryblock_time of requested transaction.
proposer_addressstring<byte>queryproposer_address is the proposer of the requested block.
chain_idstring<int64>querychain_id is the the eip155 chain id parsed from the requested block header.
Response
A successful response.
An unexpected error response.
ValidatorAccount queries an Ethereum account's from a validator consensus Address.
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
cons_addressstringrequiredpathcons_address is the validator cons address to query the account for.
Response
A successful response.
An unexpected error response.