Since QANplatform is Ethereum and EVM-compatible all the official Ethereum RPC Methods work.
QAN API Methods
Use APIs to interact with the QAN TestNet.
Note:
Explore QAN API Methods
Name | Function |
---|---|
qan_blockNumber | Returns the latest block number of the blockchain. |
qan_call | Executes a new message call immediately without creating a transaction on the block chain. |
qan_chainId | Returns the current network/chain ID, used to sign replay-protected transaction introduced in EIP-155. |
qan_estimateGas | Returns an estimation of gas for a given transaction. |
qan_feeHistory | Returns the collection of historical gas information. |
qan_gasPrice | Returns the current gas price on the network in wei. |
qan_getBalance | Returns the balance of the account of given address. |
qan_getBlockByHash | Returns information of the block matching the given block hash. |
qan_getBlockByNumber | Returns information of the block matching the given block number. |
qan_getBlockReceipts | Returns all transaction receipts for a given block. |
qan_getBlockTransactionCountByHash | Returns the number of transactions for the block matching the given block hash. |
qan_getBlockTransactionCountByNumber | Returns the number of transactions for the block matching the given block number. |
qan_getCode | Returns the compiled bytecode of a smart contract. |
qan_getFilterChanges | Polling method for a filter, which returns an array of events that have occurred since the last poll. |
qan_getFilterLogs | Returns an array of all logs matching filter with given id. |
qan_getLogs | Returns an array of all logs matching a given filter object. |
qan_getProof | Returns the account and storage values of the specified account including the Merkle-proof. |
qan_getStorageAt | Returns the value from a storage position at a given address. |
qan_getTransactionByBlockHashAndIndex | Returns information about a transaction given a blockhash and transaction index position. |
qan_getTransactionByBlockNumberAndIndex | Returns information about a transaction given a block number and transaction index position. |
qan_getTransactionByHash | Returns the information about a transaction from a transaction hash. |
qan_getTransactionCount | Returns the number of transactions sent from an address. |
qan_getTransactionReceipt | Returns the receipt of a transaction by transaction hash. |
qan_maxPriorityFeePerGas | Get the priority fee needed to be included in a block. |
qan_newBlockFilter | Creates a filter in the node, to notify when a new block arrives. |
qan_newFilter | Creates a filter object, based on filter options, to notify when the state changes (logs). |
qan_newPendingTransactionFilter | Creates a filter in the node to notify when new pending transactions arrive. |
qan_sendRawTransaction | Creates new message call transaction or a contract creation for signed transactions. |
qan_syncing | Returns 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_uninstallFilter | Uninstalls a filter with the given filter id. |
qan_xlinkValid | Returns the xlink validity time of the account of given address. |
Contents