Skip to main content

Gno RPC Endpoints

For network configurations, view the network configuration page.

Common Parameters

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
resultObject(upon success) The result object.
errorObject(upon failure) The error object.
error.codeNumberThe error code.
error.messageStringThe error message.
error.dataStringThe error data.

Health Check

Call with the /health path when verifying that the node is running.

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
resultObject{}

Check Node Server Status

Call with the /status path to check the information from a node.

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
result[Status Result]The result of the node server status.

Status Result

NameTypeDescription
node_infoObjectGeneral information about the node.
sync_infoObjectThe sync information.
validator_infoObjectThe validator information.

Get Network Information

Call with the /net_info path to check the network information from the node.

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
result[NetInfo Result]The network information.

NetInfo Result

NameTypeDescription
listeningBooleanEnables listening.
listenersString []List of listeners.
n_peersStringNumber of peers.
peersString []List of peers.

Get Genesis Block Information

Call with the /genesis path to retrieve information about the Genesis block from the node.

Response

nameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
resultObjectThe Genesis block information.

Get Consensus Parameters

Call with the /consensus_params path to check the consensus algorithm parameters at the specified height.

Parameters

NameDescription
heightThe block height.

Response

NameTypeDescription
jsonrpcStringThe RPC Version.
idStringThe response ID.
result[Consensus Params Result]The consensus parameter information.

Consensus Params Result

NameTypeDescription
block_heightStringThe block height.
consensus_paramsObjectThe parameter information.
consensus_params.BlockObjectThe block parameters.
consensus_params.ValidatorObjectThe validator parameters.

Get Consensus State

Call with the /consensus_state to get the consensus state of the Gnoland blockchain

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
result[Consensus State Response]The consensus state information.

Consensus State Response

NameTypeDescription
round_stateObjectThe consensus state object.
round_state.height/round/stepStringThe block height / round / step.
round_state.start_timeStringThe round start time.
round_state.proposal_block_hashStringThe proposal block hash.
round_state.locked_block_hashStringThe locked block hash.
round_state.valid_block_hashStringThe valid block hash.
round_state.height_vote_setObject-

Get Commit

Call with the /commit path to retrieve commit information at the specified block height.

Parameters

NameDescription
heightThe block height.

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
result[Commit Result]The commit information.

Commit Result

NameTypeDescription
signed_headerObjectThe signed header object.
canonicalBooleanReturns commit state.

Get Block Information

Call with the /block path to retrieve block information at the specified height.

Parameters

NameDescription
heightThe block height.

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
result[Block Result]The commit information.

Block Result

NameTypeDescription
block_metaObjectThe block metadata.
blockObjectThe block information.

Get Block Results

Call with the /block_results path to retrieve block processing information at the specified height.

Parameters

NameDescription
heightThe block height.

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
result[Block Result]The result object.

Block Result

NameTypeDescription
heightObjectThe block height.
results[Block Result Info] []The list of block processing results.

Block Result Info

NameTypeDescription
deliver_txObject []The list of transaction results.
deliver_tx[].ResponseBaseObjectThe transaction response object.
deliver_tx[].GasWantedStringMaximum amount of gas to use.
deliver_tx[].GasUsedStringActual gas used.
begin_blockObjectPrevious block information.
end_blockObjectNext block information.

Get Block List

Call with the /blockchain path to retrieve information about blocks within a specified range.

Parameters

NameDescription
minHeightThe minimum block height.
maxHeightThe maximum block height.

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
result[Blockchain Result]The result object.

Blockchain Result

NameTypeDescription
last_heightStringThe latest block height.
block_metaObject []The list of block metadata.

Get a No. of Unconfirmed Transactions

Call with the /num_unconfirmed_txs path to get data about unconfirmed transactions.

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
result[Num Unconfirmed Txs Result]The result object.

Num Unconfirmed Txs Result

NameTypeDescription
n_txsStringThe number of transactions.
totalStringThe total number.
total_bytesStringTotal bytes.
txsnull-

Get a List of Unconfirmed Transactions

Call with the /unconfirmed_txs path to get a list of unconfirmed transactions.

Parameters

NameDescription
limitThe maximum transaction numbers to get.

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
result[Unconfirmed Txs Result]The result object.

Unconfirmed Txs Result

NameTypeDescription
n_txsStringThe number of transactions.
totalStringThe total number.
total_bytesStringTotal bytes.
txsObject []A list of unconfirmed transactions.

Get a List of Validators

Call with the /validators path to get a list of validators at a specific height.

Parameters

NameDescription
heightThe block height (default: newest block).

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
result[Validators Result]The result object.

Validators Result

NameTypeDescription
block_heightObjectThe block height.
validators[Validator] []The list of validators.

Validator

NameTypeDescription
addressStringThe address of the validator.
pub_keyObject []The public key object of the validator.
pub_key.@typeStringThe type of validator's public key.
pub_key.valueStringThe value of the validator's public key.
voting_powerStringVoting power of the validator.
proposer_priorityStringThe priority of the proposer.

Broadcast a Transaction - Asynchronous

Call with the /broadcast_tx_async path to create and broadcast a transaction without waiting for the transaction response.

Parameters

NameDescription
txThe value of the signed transaction binary.

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
result[Transaction Result]The result object.

Transaction Result

NameTypeDescription
hashStringThe transaction hash.
dataObjectThe transaction data object.
errorObjectThe error object.
logStringThe log information.

Broadcast a Transaction - Synchronous

Call with the /broadcast_tx_sync path to create and broadcast a transaction, then wait for the transaction response.

Parameters

NameDescription
txThe value of the signed transaction binary.

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
result[Transaction Result]The result object.

Transaction Result

NameTypeDescription
hashStringThe transaction hash.
dataObjectThe transaction data object.
errorObjectThe error object.
logStringThe log information.

Call with the /broadcast_tx_commit path to create and broadcast a transaction, then wait for the transaction response and the commit response.

Parameters

NameDescription
txThe value of the signed transaction binary.

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
result[Transaction Commit Result]The result object.

Transaction Commit Result

NameTypeDescription
heightStringThe height of the block when the transaction was committed.
hashStringThe transaction hash.
deliver_txObjectThe delivered transaction information.
check_txObjectThe committed transaction information.

ABCI

Get ABCI Information

Call with the /abci_info path to get the latest information about the ABCI.

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
result[ABCI Info Result]The commit information.

ABCI Info Result

NameTypeDescription
responseObjectThe metadata of the block.
response.ResponseBase[ABCI Response]The ABCI response data.
response.ABCIVersionStringThe ABCI version.
response.AppVersionStringThe app version.
response.LastBlockHeightStringThe latest block height.
response.LastBlockAppHashStringThe latest block hash.

ABCI Response

NameTypeDescription
DataStringThe Base64-encoded response data.
ErrorObjectThe ABCI response error object.
EventsObject []The list of event objects.
LogStringThe ABCI response log.
InfoStringThe ABCI response information.

Get ABCI Query

Call with the /abci_query to get information via the ABCI Query.

Query

NameDescription
auth/accounts/{ADDRESS}Returns the account information.
bank/balances/{ADDRESS}Returns the balance information about the account.
vm/qfuncsReturns public facing function signatures as JSON.
vm/qfileReturns the file bytes, or list of files if directory.
vm/qrenderCalls .Render(<path>) in readonly mode.
vm/qevalEvaluates any expression in readonly mode and returns the results.
vm/store(not yet supported) Fetches items from the store.
vm/package(not yet supported) Fetches a package's files.

Parameters

NameDescription
pathThe query path.
dataThe data from the query path.
(optional) heightThe block height (default: latest block height).
(optional) proveThe validation status.

Response

NameTypeDescription
jsonrpcStringThe RPC version.
idStringThe response ID.
result[ABCI Query Result]The commit information.

ABCI Query Result

NameTypeDescription
responseObjectThe metadata of the block.
response.ResponseBase[ABCI Response]The ABCI response data.
response.KeyStringThe key.
response.ValueStringThe value.
response.ProofStringThe validation ID.
response.HeightStringThe block height.

ABCI Response

NameTypeDescription
DataStringThe Base64-encoded response data.
ErrorObjectThe ABCI response error object.
EventsObject []The list of event objects.
LogStringThe ABCI response log.
InfoStringThe ABCI response information.