Query

Query

A single query, which is sent from the client to the node. This includes all possible queries. Each Query should not have more than 50 levels.

Field

Type

Description

query

oneof

getByKey

GetByKeyQuery

Get all entities associated with a given key

getBySolidityID

GetBySolidityIDQuery

Get the IDs in the format used in transactions, given the format used in Solidity

contractCallLocal

ContractCallLocalQuery

Call a function of a smart contract instance

contractGetInfo

ContractGetInfoQuery

Get information about a smart contract instance

contractGetBytecode

ContractGetBytecodeQuery

Get bytecode used by a smart contract instance

ContractGetRecords

ContractGetRecordsQuery

Get Records of the contract instance

cryptogetAccountBalance

CryptoGetAccountBalanceQuery

Get the current balance in a cryptocurrency account

cryptoGetAccountRecords

CryptoGetAccountRecordsQuery

Get all the records that currently exist for transactions involving an account

cryptoGetInfo

CryptoGetInfoQuery

Get all information about an account

cryptoGetLiveHash

CryptoGetLiveHash

Get a single livehash from a single account (or null if it doesn't exist)

cryptoGetProxyStakers

CryptoGetStakersQuery

Get all the accounts that proxy stake to a given account, and how much they proxy stake (not yet implemented in the current API)

fileGetContents

FileGetContentsQuery

Get the contents of a file (the bytes stored in it)

fileGetInfo

FileGetInfoQuery

Get information about a file, such as its expiration date

transactionGetReceipt

TransactionGetReceiptQuery

Get a receipt for a transaction (lasts 180 seconds)

transactionGetRecord

TransactionGetRecordQuery

Get a record for a transaction (lasts 1 hour)

transactionGetFastRecord

TransactionGetFastRecordQuery

Get a record for a transaction (lasts 180 seconds)

consensusGetTopicInfo

ConsensusGetTopicInfoQuery

Get the parameters of and state of a consensus topic.

networkGetVersionInfo

NetworkGetVersionInfoQuery

Get the version of the network

tokenGetInfo

TokenGetInfoQuery

Get all information about a token