QAN API Methods

Use APIs to interact with the QAN TestNet.

Note:

Since QANplatform is Ethereum and EVM-compatible all the official Ethereum RPC Methods work.

Explore QAN API Methods

Name Function
qan_blockNumberReturns the latest block number of the blockchain.
qan_callExecutes a new message call immediately without creating a transaction on the block chain.
qan_chainIdReturns the current network/chain ID, used to sign replay-protected transaction introduced in EIP-155.
qan_estimateGasReturns an estimation of gas for a given transaction.
qan_feeHistoryReturns the collection of historical gas information.
qan_gasPriceReturns the current gas price on the network in wei.
qan_getBalanceReturns the balance of the account of given address.
qan_getBlockByHashReturns information of the block matching the given block hash.
qan_getBlockByNumberReturns information of the block matching the given block number.
qan_getBlockReceiptsReturns all transaction receipts for a given block.
qan_getBlockTransactionCountByHashReturns the number of transactions for the block matching the given block hash.
qan_getBlockTransactionCountByNumberReturns the number of transactions for the block matching the given block number.
qan_getCodeReturns the compiled bytecode of a smart contract.
qan_getFilterChangesPolling method for a filter, which returns an array of events that have occurred since the last poll.
qan_getFilterLogsReturns an array of all logs matching filter with given id.
qan_getLogsReturns an array of all logs matching a given filter object.
qan_getProofReturns the account and storage values of the specified account including the Merkle-proof.
qan_getStorageAtReturns the value from a storage position at a given address.
qan_getTransactionByBlockHashAndIndexReturns information about a transaction given a blockhash and transaction index position.
qan_getTransactionByBlockNumberAndIndexReturns information about a transaction given a block number and transaction index position.
qan_getTransactionByHashReturns the information about a transaction from a transaction hash.
qan_getTransactionCountReturns the number of transactions sent from an address.
qan_getTransactionReceiptReturns the receipt of a transaction by transaction hash.
qan_maxPriorityFeePerGasGet the priority fee needed to be included in a block.
qan_newBlockFilterCreates a filter in the node, to notify when a new block arrives.
qan_newFilterCreates a filter object, based on filter options, to notify when the state changes (logs).
qan_newPendingTransactionFilterCreates a filter in the node to notify when new pending transactions arrive.
qan_sendRawTransactionCreates new message call transaction or a contract creation for signed transactions.
qan_syncingReturns an object with the sync status of the node if the node is out-of-sync and is syncing. Returns null when the node is already in sync.
qan_uninstallFilterUninstalls a filter with the given filter id.
qan_xlinkValidReturns the xlink validity time of the account of given address.

Previous

Interacting with a smart contract

Next

qan_blockNumber