Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 4.62 KB

File metadata and controls

7 lines (4 loc) · 4.62 KB

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.

FieldTypeDescription
getByKeyGetByKeyQueryGet all entities associated with a given key
getBySolidityIDGetBySolidityIDQueryGet the IDs in the format used in transactions, given the format used in Solidity
contractCallLocalContractCallLocalQueryCall a function of a smart contract instance
contractGetInfoContractGetInfoQueryGet information about a smart contract instance
contractGetBytecodeContractGetBytecodeQueryGet bytecode used by a smart contract instance
ContractGetRecordsContractGetRecordsQueryGet Records of the contract instance
cryptogetAccountBalanceCryptoGetAccountBalanceQueryGet the current balance in a cryptocurrency account
cryptoGetAccountRecordsCryptoGetAccountRecordsQueryGet all the records that currently exist for transactions involving an account
cryptoGetInfoCryptoGetInfoQueryGet all information about an account
cryptoGetLiveHashCryptoGetLiveHashQueryGet a single livehash from a single account (or null if it doesn't exist)
cryptoGetProxyStakersCryptoGetStakersQueryGet all the accounts that proxy stake to a given account, and how much they proxy stake (not yet implemented in the current API)
fileGetContentsFileGetContentsQueryGet the contents of a file (the bytes stored in it)
fileGetInfoFileGetInfoQueryGet information about a file, such as its expiration date
transactionGetReceiptTransactionGetReceiptQueryGet a receipt for a transaction (lasts 180 seconds)
transactionGetRecordTransactionGetRecordQueryGet a record for a transaction (lasts 1 hour)
transactionGetFastRecordTransactionGetFastRecordQueryGet a record for a transaction (lasts 180 seconds)
consensusGetTopicInfoConsensusGetTopicInfoQueryGet the parameters of and state of a consensus topic.
networkGetVersionInfoNetworkGetVersionInfoQueryGet the version of the network
tokenGetInfoTokenGetInfoQueryGet all information about a token
scheduleGetInfoScheduleGetInfoQueryGet all information about a schedule entity
tokenGetAccountNftInfoTokenGetAccountNftInfoQueryGet a list of NFTs associated with the account
tokenGetNftInfoTokenGetNftInfoQueryGet all information about a NFT
tokenGetNftInfosTokenGetNftInfosQueryGet a list of NFTs for the token