QuickNode - AWS for Blockchain

Introduction

Quicknode allows high-performance access to blockchains like Ethereum (as well as most ERC-20 compatible blockchains like Polygon, xDai, etc) and Solana. This plugin makes it simple to power your blockchain applications built on Bubble and scale up as you grow. From elastic APIs & dedicated nodes to powerful tools & analytics, all at your command through a simple control panel. You can get an instant access to both Mainnet and TestNet networks.

How to setup

To start you need to create a project at: https://www.quicknode.com/
  1. Create an account.
Image without caption
2. On the dashboard select Tab: Nodes and then click "Create node" button
Image without caption
3. Select the preferred plan.
Image without caption
4. Select node and network.
Image without caption
5. Pay the selected plan.
Image without caption
6. Select your nodes
Image without caption
7. Go to "Get Started" and copy the HTTP PROVIDER link.
Image without caption
8. Go to the editor Plugin Tab and paste the HTTP PROVIDER link into the plugin settings.Β 
Image without caption

ο»Ώο»ΏEthereum API Call

QuickNode Ethereum RPC Overview
At QuickNode, we run Ethereum RPC endpoints. In aggregate, we serve more than 50 billion requests every month. To make it easier for developers to integrate with QuickNode, we've created this document that shows how to call RPC methods using libraries in Python, Ruby, JavaScript, cURL.With QuickNode, you either have aΒ dedicated endpointΒ that is always serving traffic from the same location as designated when you booted the endpointΒ or you get access to our global networkΒ which always routes to the nearestΒ availableΒ endpoint.

1. eth_getBalance

Image without caption
Parameters:
  • WalletΒ IDΒ - The address to check for the balance.
Return values:
  • ResultΒ - Integer value of current balance in Wei encoded as hexadecimal.

2. eth_blockNumber

Parameters:
  • None
Return values:
  • ResultΒ - Integer value of latest block number encoded as a hexadecimal.

3. eth_getTransactionByHash

Image without caption
Parameters:
  • hashΒ - The hash of a transaction.
Return values:
objectΒ - Transaction Response Object, or null if no transaction is found:
  • hashΒ - The hash of the transaction
  • nonceΒ - The number of transactions made by the sender prior to this one encoded as hexadecimal.
  • blockHashΒ - The hash of the block where this transaction was in. null if pending.
  • blockNumberΒ - The block number where this transaction was in. null if pending.
  • transactionIndexΒ - Integer of the transactions index position in the block. null if pending.
  • fromΒ - Address of the sender.
  • toΒ - Address of the receiver. Null when it' a contract creation transaction.
  • valueΒ - The value transferred in Wei, encoded as hexadecimal.
  • gasPriceΒ - The gas price provided by the sender in Wei, encoded as a hexadecimal.
  • gasΒ - The gas provided by the sender, encoded as hexadecimal.
  • inputΒ - The data sent along with the transaction.
  • vΒ - The standardized V field of the signature.
  • standardVΒ - The standardized V field of the signature (0 or 1).
  • rΒ - The R field of the signature.
  • rawΒ - The raw transaction data.
  • publickeyΒ - The public key of the signer.
  • chainidΒ - The chain id of the transaction, if any.

4. eth_gasPrice

Parameters:
  • None
Return values:
  • ResultΒ - Integer value of current gas price in Wei.

5. eth_getBlockByHash

Image without caption
Parameters:
  • HashΒ - Hash of the block.
  • booleanΒ - If true it returns the full transaction objects, if false only the hashes of the transactions.
Return values:
objectΒ - A block object, orΒ nullΒ when no block was found.
  • numberΒ - The block number of the requested block is encoded as hexadecimal. null if pending.
  • hashΒ - The block hash of the requested block. null if pending.
  • parenthashΒ - Hash of the parent block.
  • nonceΒ - Hash of the generated proof-of-work. null if pending.
  • sha3unclesΒ - SHA3 of the uncle's data in the block.
  • logsbloomΒ - The bloom filter for the logs of the block. null if pending.
  • transactionsrootΒ - The root of the transaction trie of the block.
  • staterootΒ - The root of the final state trie of the block.
  • receiptsrootΒ - The root of the receipts trie of the block.
  • minerΒ - The address of the beneficiary to whom the mining rewards were given.
  • difficultyΒ - Integer of the difficulty for this block encoded as hexadecimal.
  • totaldifficultyΒ - Integer of the total difficulty of the chain until this block is encoded as hexadecimal.
  • extradataΒ - The β€œextra data” field of this block.
  • sizeΒ - The size of this block in bytes as an Integer value encoded as hexadecimal.
  • gaslimitΒ - The maximum gas allowed in this block is encoded as hexadecimal.
  • gasusedΒ - The total used gas by all transactions in this block is encoded as hexadecimal.
  • timestampΒ - The UNIX timestamp for when the block was collated.
  • unclesΒ - Array of uncle hashes.

6. eth_chainId

Parameters:
  • none
Return values:
quantityΒ - EIP155 Chain ID.

7. eth_estimateGas

Image without caption
Parameters:
  • fromΒ -Β 20 Bytes The address the transaction is sent from.
  • toΒ - 20 Bytes The address the transaction is sent from.
  • value -Β Integer of the value sent with this transaction.
Return values:
  • quantityΒ - The estimated amount of gas used.

8. eth_getBlockByNumber

Image without caption
Parameters:
  • quantity or tagΒ - Integer block number, or the string 'latest', 'earliest' or 'pending', see theΒ default block parameter.
  • booleanΒ - If true it returns the full transaction objects, if false only the hashes of the transactions.
Return values:
objectΒ - A block object, orΒ nullΒ when no block was found.
  • numberΒ - The block number of the requested block is encoded as hexadecimal.Β nullΒ when its pending block.
  • hashΒ - The block hash of the requested block.Β nullΒ when its pending block.
  • parenthashΒ - Hash of the parent block.
  • nonceΒ - Hash of the generated proof-of-work.Β nullΒ when its pending block.
  • sha3unclesΒ - SHA3 of the uncle's data in the block.
  • logsbloomΒ - The bloom filter for the logs of the block.Β nullΒ when its pending block.
  • transactionsrootΒ - The root of the transaction trie of the block.
  • staterootΒ - The root of the final state trie of the block.
  • receiptsrootΒ - The root of the receipts trie of the block.
  • minerΒ - The address of the beneficiary to whom the mining rewards were given.
  • difficultyΒ - Integer of the difficulty for this block encoded as hexadecimal.
  • totaldifficultyΒ - Integer of the total difficulty of the chain until this block is encoded as hexadecimal.
  • extradataΒ - The β€œextra data” field of this block.
  • sizeΒ - The size of this block in bytes as an Integer value encoded as hexadecimal.
  • gaslimitΒ - The maximum gas allowed in this block is encoded as hexadecimal.
  • gasusedΒ - The total used gas by all transactions in this block is encoded as hexadecimal.
  • timestampΒ - The UNIX timestamp for when the block was collated.
  • transactionsΒ - Array of transaction objects, or 32 Bytes transaction hashes depending on the second Boolean parameter in the request.
  • unclesΒ - Array of uncle hashes.

9. eth_getBlockTransactionCountByHash

Image without caption
Parameters:
  • hashΒ - Hash of the block.
Return values:
  • resultΒ - Integer number of transactions in the block.

10. eth_getBlockTransactionCountByNumber

Image without caption
Parameters:
  • Block-numberΒ - Block number in hexadecimal format with 0x prefix.
Return values:
  • resultΒ - Integer number of transactions in the block.

11. eth_getCode

Image without caption
Parameters:
  • addressΒ - The address to check for code.
Return values:
  • resultΒ - String value of the compiled bytecode.

12. eth_mining

Parameters:
  • none
Return values:
  • resultΒ - Boolean true if the node is mining, otherwise false.

13. eth_getLogs

Image without caption
Parameters:
  • addressΒ - Contract address or a list of addresses from which logs should originate.
Return values:
  • removedΒ - Boolean true if the log was removed, due to a chain reorganization. false if it's a valid log.
  • logindexΒ - Integer of log index position in the block encoded as hexadecimal. null if pending.
  • transactionindexΒ - Integer of transactions index position log was created from. null if pending.
  • transactionhashΒ - Hash of the transactions this log was created from. null if pending.
  • blockhashΒ - Hash of the block where this log was in. null when it's pending. null if pending.
  • blocknumberΒ - The block number where this log was, encoded as hexadecimal. null if pending.
  • addressΒ - The address from which this log originated.
  • dataΒ - Contains one or more 32 Bytes non-indexed arguments of the log.
  • topicsΒ - Array of 0 to 4 32 Bytes of indexed log arguments.

14. eth_protocolVersion

Parameters:
  • none
Return values:
  • resultΒ - Current Ethereum protocol version in string format.

15. net_listening

Parameters:
  • none
Return values:
  • resultΒ - (Boolean) true when listening, otherwise false.

16. net_peerCount

Parameters:
  • none
Return values:
  • resultΒ - Integer of the number of connected peers encoded as hexadecimal.

17. net_version

Parameters:
  • none
Return values:Β 
resultΒ - String value of current network id. Typical values are as follows:
  • 1Β - ethereum mainnet
  • 2Β - morden testnet (deprecated)
  • 3Β - ropsten testnet
  • 4Β - rinkeby testnet
  • 5Β - goerli testnet
  • 10Β - optimism mainnet
  • 69Β - optimism kovan testnet
  • 42Β - kovan testnet
  • 137Β - matic/polygon mainnet
  • 80001Β - matic/polygon mumbai testnet
  • 250Β - fantom mainnet
  • 100Β - xdai mainnet
  • 56Β - bsc mainnet

18. eth_syncing

Parameters:
  • none
Return values:
resultΒ - Boolean (false) when not syncing:
  • startingblockΒ - The block at which the import started encoded as a hexadecimal.
  • currentblockΒ - The current block, same as eth_blockNumber encoded as a hexadecimal.
  • highestblockΒ - The estimated highest block encoded as a hexadecimal.

19. eth_newBlockFilter

Parameters:
  • none
Return values:

20. eth_newFilter

Image without caption
Parameters:
  • fromBlockΒ - Integer block number encoded as a hexadecimal, "latest","pending", or "earliest" tags.
  • toBlockΒ - Integer block number encoded as a hexadecimal, "latest","pending", or "earliest" tags.
  • addressΒ - Contract address or a list of addresses from which logs should originate.
Return values:

21. eth_getStorageAt

Image without caption
Parameters:
  • addressΒ - The address to check for storage.
  • quantityΒ - Integer of the position in storage.
  • tagΒ - (optional) Integer block number, or the string 'latest, 'earliest' or 'pending.
Return values:
  • resultΒ - the value at this storage position.

22. eth_getFilterChanges

Image without caption
Parameters:
Return values:
arrayΒ -Β Array of one of the following, depending on the filter type, or empty if no changes since last poll:
  • blockHashΒ - The 32 byte hash of a block that meets your filter requirements.
  • transactionhashΒ - The 32 byte hash of a transaction that meets your filter requirements.
β€’Β eth_newFilter
  • removedΒ - Boolean true if log was removed, due to a chain reorganization. false if it's a valid log.
  • logindexΒ - Integer of log index position in the block encoded as hexadecimal. null if pending.
  • transactionindexΒ - Integer of transactions index position log was created from. null if pending.
  • transactionhashΒ - Hash of the transactions this log was created from. null if pending.
  • blockhashΒ - Hash of the block where this log was in. null when it's pending. null if pending.
  • blocknumberΒ - The block number where this log was, encoded as hexadecimal. null if pending.
  • addressΒ - The address from which this log originated.
  • dataΒ - Contains one or more 32 Bytes non-indexed arguments of the log.
  • topicsΒ - Array of 0 to 4 32 Bytes of indexed log arguments.

23. eth_getTransactionByBlockNumberAndIndex

Image without caption
Parameters:
  • qunatityΒ | tagΒ - Integer block number encoded as hexadecimal, or the string 'latest', 'earliest' or 'pending', see theΒ default block parameter.
  • quantityΒ - A hex of the integer representing the position in the block.
Return values:
objectΒ - Transaction Response Object , or null if no transaction is found:
  • hashΒ - The hash of the transaction
  • nonceΒ - The number of transactions made by the sender prior to this one encoded as hexadecimal.
  • blockHashΒ - The hash of the block where this transaction was in. null if pending.
  • blockNumberΒ - The block number where this transaction was in. null if pending.
  • transactionIndexΒ - Integer of the transactions index position in the block. null if pending.
  • fromΒ - Address of the sender.
  • toΒ - Address of the receiver. Null when its a contract creation transaction.
  • valueΒ - The value transferred in Wei, encoded as hexadecimal.
  • gasPriceΒ - The gas price provided by the sender in Wei, encoded ashexadecimal.
  • gasΒ - The gas provided by the sender, encoded as a hexadecimal.
  • inputΒ - The data sent along with the transaction.
  • vΒ - The standardized V field of the signature.
  • standardVΒ - The standardized V field of the signature (0 or 1).
  • rΒ The R field of the signature.
  • rawΒ - The raw transaction data.
  • publickeyΒ - The public key of the signer.
  • chainidΒ - The chain id of the transaction, if any.

24. eth_getTransactionByBlockHashAndIndex

Image without caption
Parameters:
  • hashΒ - A blocks hash.
  • IndexΒ - An integer of the transaction index position encoded as hexadecimal.
Return values:
objectΒ - Transaction Response Object, or null if no transaction is found:
  • hashΒ - The hash of the transaction
  • nonceΒ - The number of transactions made by the sender prior to this one encoded as hexadecimal.
  • blockHashΒ - The hash of the block where this transaction was in. null if pending.
  • blockNumberΒ - The block number where this transaction was in. null if pending.
  • transactionIndexΒ - Integer of the transactions index position in the block. null if pending.
  • fromΒ - Address of the sender.
  • toΒ - Address of the receiver. Null when its a contract creation transaction.
  • valueΒ - The value transferred in Wei, encoded as hexadecimal.
  • gasPriceΒ - The gas price provided by the sender in Wei, encoded as hexadecimal.
  • gasΒ - The gas provided by the sender, encoded as hexadecimal.
  • inputΒ - The data sent along with the transaction.
  • vΒ - The standardized V field of the signature.
  • standardVΒ - The standardized V field of the signature (0 or 1).
  • rΒ The R field of the signature.
  • rawΒ - The raw transaction data.
  • publickeyΒ - The public key of the signer.
  • chainidΒ - The chain id of the transaction, if any.

25. eth_getTransactionCount

Image without caption
Parameters:
  • addressΒ - The address you want a transaction count from.
  • BlockΒ - (optional) Integer block number encoded as hexadecimal, or the string 'latest', 'earliest' or 'pending', see theΒ default block parameter.
Return values:
resultΒ - Integer number of transactions sent from an address encoded as hexadecimal.

26. eth_getTransactionReceipt

Image without caption
Parameters:
hashΒ - The hash of a transaction.
Return values:
27objectΒ - A transaction receipt object, orΒ nullΒ when no receipt was found:
  • transactionHashΒ - Hash of the transaction.
  • transactionIndexΒ - Integer of the transactions index position in the block encoded as a hexadecimal.
  • fromΒ - Address of the sender.
  • toΒ - Address of the receiver.Β nullΒ when it's a contract creation transaction.
  • blockHashΒ - Hash of the block where this transaction was in.
  • blockNumberΒ - Block number where this transaction was added encoded as a hexadecimal.
  • cumulativeGasUsedΒ - The total gas used when this transaction was executed in the block.
  • gasUsedΒ - The amount of gas used by this specific transaction alone.
  • contractAddressΒ - The contract address created for contract creation, otherwise null.
  • logsΒ - Array of log objects, which this transaction generated.
  • logsBloomΒ - Bloom filter for light clients to quickly retrieve related logs.
  • valueΒ - Value transferred in Wei encoded as hexadecimal.
  • vΒ - ECDSA recovery id encoded as hexadecimal.
  • rΒ - ECDSA signature r
  • sΒ - ECDSA signature s
It also returns:
  • rootΒ - 32 bytes of post-transaction stateroot (pre-Byzantium).
  • statusΒ - Either 1 (success) or 0 (failure) encoded as hexadecimal.

27. eth_getUncleCountByBlockHash

Image without caption
Parameters:
hashΒ - The Hash of the block to get uncles for.
Return values:
unclesΒ - Integer value of the number of uncles in the block encoded as hexadecimal.

28. eth_getUncleCountByBlockNumber

Image without caption
Parameters:
BlockΒ - Integer of a block number in hexadecimal format starting with 0x.
Return values:
UnclesΒ - Integer value of the number of uncles in the block encoded as hexadecimal.

29. eth_newPendingTransactionFilter

Parameters:
  • none
Return values:
resultΒ - A filter id - to be used when callingΒ eth_getFilterChanges.

30. eth_sendRawTransaction

Image without caption
Parameters:
DataΒ - The signed transaction (typically signed with a library, using your private key)
Return value values:
ResultΒ - The transaction hash, or the zero hash if the transaction is not yet available.

31. eth_call

Image without caption
Parameters:
  • ToΒ - String of the address, the transaction is directed to.
  • DataΒ - (optional) String of the hash of the method signature and encoded parameters, see theΒ Ethereum Contract ABI.
  • BlockΒ - Integer block number, or the string 'latest', 'earliest' or 'pending', see theΒ default block parameter.
Return values:
dataΒ - the return value of the executed contract.

32. qn_verifyNFTsOwner

Image without caption
Currently supports bothΒ ERC-721Β andΒ ERC-1155Β compliant contracts.
Parameters:
  • WalletΒ - The wallet address to check for NFTs.
  • ListΒ - List of ERC-721 and/or ERC-1155 NFT contract addresses, suffixed with
:tokenIdΒ to specify a specific ID. For example, providing the valueΒ 
0x2106c...7aeaa:1234Β will verify ownership of Loopy Donuts' NFT token with IDΒ 
1234. You may include up to 20 contract addresses per request.
Return values:
objectΒ - Custom Response Object:
  • ownerΒ - The wallet address we checked for NFTs.
  • assetsΒ - An array of owned NFTs for the provided wallet, in the same format as the inputted array. If an inputted array isn't returned, then it does not belong to the wallet.

33. qn_fetchNFTs

Image without caption
Currently supportsΒ ERC-721Β compliant contracts.
The methodΒ qn_verifyNFTsOwnerΒ provides token ownership verification for both ERC-721Β andΒ ERC-1155 contracts.
Parameters:
  • WalletΒ - The wallet address to check for NFTs.
  • ListΒ - List of NFT contract addresses (must support methodsΒ balanceOf,Β tokenURI, andΒ tokenOfOwnerByIndex) you'd like to get ownership data from. Contract addresses may be optionally suffixed withΒ :tokenIdΒ to specify a specific NFT id to filter on. For example,Β 0x2106c...7aeaa:1234Β will filter Loopy Donuts on the NFT token with idΒ 1234Β only. You may include up to 20 contract addresses per request.
Return values:
objectΒ - Custom Response Object, or null if no NFTs are found:
  • ownerΒ - The wallet address we checked for NFTs.
  • assetsΒ - An array of objects representing NFTs with the following shape:
  • nameΒ - the name of this specific NFT.
  • collectionTokenIdΒ - the token id of this NFT in its collection.
  • collectionNameΒ - the name of this NFT's collection.
  • imageUrlΒ - the URL where the image for this NFT can be seen.
  • collectionAddressΒ - the contract address that this NFT lives in.
  • traitsΒ - an array of traits that this NFT has.
  • chainΒ - what chain this aggregation happened on.
  • networkΒ - what network this aggregation happened on.
  • provenanceΒ - an array of transfers from previous owners for this NFT. It's important to note that this only has owners from recent blocks, for full ownership history, you'll need to enable the archive add on.Β This is only available for select customers at this time.

34. trace_call

Image without caption
Parameters:
  • toΒ - String of the address the transaction is directed to.gasΒ - (optional) Integer of the gas provided for the transaction execution.
Return values:
arrayΒ - Block traces, which have the following object shape (all return types are hexadecimal representations of their data type unless otherwise stated):
  • OutputΒ - String.
  • TransactionHashΒ - String of the transaction hash.
  • vmtraceΒ - ParityVmTrace Object, which has the following fields:
  • codeΒ - String.
  • operationsΒ - array of ParityVmOperationTrace objects.
  • actionΒ - ParityTrace Object, which has the following fields:
  • traceaddressΒ - Array.
  • calltypeΒ - String.
  • includeintraceΒ - Boolean.
  • isprecompliedΒ - Boolean.
  • typeΒ - String.
  • creationmethodΒ - String.
  • fromΒ - Address.
  • toΒ - Address.
  • gasΒ - Quantity.
  • valueΒ - Quantity.
  • inputΒ - Data.
  • resultΒ - ParityTraceResult object which has the following fields:
  • gasusedΒ - Quantity
  • outputΒ - Data
  • addressΒ - Address
  • codeΒ - Data
  • subtracesΒ - Array.
  • authorΒ - Address.
  • rewardtypeΒ - String.
  • errorΒ - String.
  • statechangesΒ - Array.

35. trace_transaction

Image without caption
Parameters:
hashΒ - The hash of a transaction.
Return values:
arrayΒ - Block traces, which have the following object shape (all return types are hexadecimal representations of their data type unless otherwise stated):
  • actionΒ - ParityTrace Object, which has the following fields:
  • traceaddressΒ - Array.
  • calltypeΒ - String.
  • includeintraceΒ - Boolean.
  • isprecompliedΒ - Boolean.
  • typeΒ - String.
  • creationmethodΒ - String.
  • fromΒ - Address.
  • toΒ - Address.
  • gasΒ - Quantity.
  • valueΒ - Quantity.
  • inputΒ - Data.
  • resultΒ - ParityTraceResult object which has the following fields:
  • gasusedΒ - Quantity
  • outputΒ - Data
  • addressΒ - Address
  • codeΒ - Data
  • subtracesΒ - Array.
  • authorΒ - Address.
  • rewardtypeΒ - String.
  • errorΒ - String.
  • blockhashΒ - String of the block hash.
  • blocknumberΒ - Quantity.
  • resultΒ - ParityTraceResult object which has the following fields:
  • gasusedΒ - Quantity
  • outputΒ - Data
  • addressΒ - Address
  • codeΒ - Data
  • subtracesΒ - Quantity.
  • traceaddressΒ - Array.
  • transactionhashΒ - Hash.
  • transactionpositionΒ - Quantity.
  • typeΒ - String.
  • errorΒ - String

36. trace_replayTransaction

Image without caption
Parameters:
  • hashΒ - The hash of a transaction.
  • traceΒ - To get the basic trace of the given transaction.
Return values:
arrayΒ - Block traces, which have the following object shape (all return types are hexadecimal representations of their data type unless otherwise stated):
  • OutputΒ - String.
  • TransactionHashΒ - String of the transaction hash.
  • vmtraceΒ - ParityVmTrace Object, which has the following fields:
  • codeΒ - String.
  • operationsΒ - array of ParityVmOperationTrace objects.
  • actionΒ - ParityTrace Object, which has the following fields:
  • traceaddressΒ - Array.
  • calltypeΒ - String.
  • includeintraceΒ - Boolean.
  • isprecompliedΒ - Boolean.
  • typeΒ - String.
  • creationmethodΒ - String.
  • fromΒ - Address.
  • toΒ - Address.
  • gasΒ - Quantity.
  • valueΒ - Quantity.
  • inputΒ - Data.
  • resultΒ - ParityTraceResult object which has the following fields:
  • gasusedΒ - Quantity
  • outputΒ - Data
  • addressΒ - Address
  • codeΒ - Data
  • subtracesΒ - Array.
  • authorΒ - Address.
  • rewardtypeΒ - String.
  • errorΒ - String.
  • statechangesΒ - Array.

37. trace_callMany

Image without caption
Parameters:
arrayΒ - Type of trace, one or more of:
  • vmTraceΒ - To get a full trace of the virtual machine's state during the execution of the given of given transaction, including for any subcells.
  • traceΒ - To get the basic trace of the given transaction.
  • statediffΒ - To get information on altered Ethereum state due to execution of the given transaction.
  • quantity or tagΒ - Integer block number, or the string 'latest', 'earliest' or 'pending', see theΒ default block parameter.
Return values:
arrayΒ - Block traces, which have the following object shape (all return types are hexadecimal representations of their data type unless otherwise stated):
  • OutputΒ - String.
  • TransactionHashΒ - String of the transaction hash.
  • vmtraceΒ - ParityVmTrace Object, which has the following fields:
  • codeΒ - String.
  • operationsΒ - array of ParityVmOperationTrace objects.
  • actionΒ - ParityTrace Object, which has the following fields:
  • traceaddressΒ - Array.
  • calltypeΒ - String.
  • includeintraceΒ - Boolean.
  • isprecompliedΒ - Boolean.
  • typeΒ - String.
  • creationmethodΒ - String.
  • fromΒ - Address.
  • toΒ - Address.
  • gasΒ - Quantity.
  • valueΒ - Quantity.
  • inputΒ - Data.
  • resultΒ - ParityTraceResult object which has the following fields:
  • gasusedΒ - Quantity
  • outputΒ - Data
  • addressΒ - Address
  • codeΒ - Data
  • subtracesΒ - Array.
  • authorΒ - Address.
  • rewardtypeΒ - String.
  • errorΒ - String.
  • statechangesΒ - Array.

38. trace_filter

Image without caption
Parameters:
  • fromBlockΒ - (optional)Β QuantityΒ orΒ TagΒ From this block.
  • toBlockΒ - (optional)Β QuantityΒ orΒ TagΒ To this block.
  • fromaddressΒ - (optional)Β ArrayΒ Addresses of the Senders.
Return values:
arrayΒ - Block traces, which have the following object shape (all return types are hexadecimal representations of their data type unless otherwise stated):
  • actionΒ - ParityTrace Object, which has the following fields:
  • traceaddressΒ - Array.
  • calltypeΒ - String.
  • includeintraceΒ - Boolean.
  • isprecompliedΒ - Boolean.
  • typeΒ - String.
  • creationmethodΒ - String.
  • fromΒ - Address.
  • toΒ - Address.
  • gasΒ - Quantity.
  • valueΒ - Quantity.
  • inputΒ - Data.
  • resultΒ - ParityTraceResult object which has the following fields:
  • gasusedΒ - Quantity
  • outputΒ - Data
  • addressΒ - Address
  • codeΒ - Data
  • subtracesΒ - Array.
  • authorΒ - Address.
  • rewardtypeΒ - String.
  • errorΒ - String.
  • blockhashΒ - String of the block hash.
  • blocknumberΒ - Quantity.
  • resultΒ - ParityTraceResult object which has the following fields:
  • gasusedΒ - Quantity
  • outputΒ - Data
  • addressΒ - Address
  • codeΒ - Data
  • subtracesΒ - Quantity.
  • traceaddressΒ - Array.
  • transactionhashΒ - Hash.
  • transactionpositionΒ - Quantity.
  • typeΒ - String.
  • errorΒ - String.

39. trace_rawTransaction

Image without caption
Parameters:
  • dataΒ - Raw transaction data/string.
Return values:
arrayΒ - Block traces, which have the following object shape (all return types are hexadecimal representations of their data type unless otherwise stated):
  • OutputΒ - String.
  • TransactionHashΒ - String of the transaction hash.
  • vmtraceΒ - ParityVmTrace Object, which has the following fields:
  • codeΒ - String.
  • operationsΒ - array of ParityVmOperationTrace objects.
  • actionΒ - ParityTrace Object, which has the following fields:
  • traceaddressΒ - Array.
  • calltypeΒ - String.
  • includeintraceΒ - Boolean.
  • isprecompliedΒ - Boolean.
  • typeΒ - String.
  • creationmethodΒ - String.
  • fromΒ - Address.
  • toΒ - Address.
  • gasΒ - Quantity.
  • valueΒ - Quantity.
  • inputΒ - Data.
  • resultΒ - ParityTraceResult object which has the following fields:
  • gasusedΒ - Quantity
  • outputΒ - Data
  • addressΒ - Address
  • codeΒ - Data
  • subtracesΒ - Array.
  • authorΒ - Address.
  • rewardtypeΒ - String.
  • errorΒ - String.
  • statechangesΒ - Array.

40. trace_replayBlockTransactions

Image without caption
Parameters:
BlockΒ - Integer block number, or the string 'latest', 'earliest' or 'pending'
Return values:
arrayΒ - Block traces, which have the following object shape (all return types are hexadecimal representations of their data type unless otherwise stated):
  • OutputΒ - String.
  • TransactionHashΒ - String of the transaction hash.
  • vmtraceΒ - ParityVmTrace Object, which has the following fields:
  • codeΒ - String.
  • operationsΒ - array of ParityVmOperationTrace objects.
  • actionΒ - ParityTrace Object, which has the following fields:
  • traceaddressΒ - Array.
  • calltypeΒ - String.
  • includeintraceΒ - Boolean.
  • isprecompliedΒ - Boolean.
  • typeΒ - String.
  • creationmethodΒ - String.
  • fromΒ - Address.
  • toΒ - Address.
  • gasΒ - Quantity.
  • valueΒ - Quantity.
  • inputΒ - Data.
  • resultΒ - ParityTraceResult object which has the following fields:
  • gasusedΒ - Quantity
  • outputΒ - Data
  • addressΒ - Address
  • codeΒ - Data
  • subtracesΒ - Array.
  • authorΒ - Address.
  • rewardtypeΒ - String.
  • errorΒ - String.
  • statechangesΒ - Array.

SolanaΒ API Call

QuickNode Solana RPC Overview
At QuickNode, we run Solana RPC endpoints. In aggregate, we serve more than 50 billion requests every month. To make it easier for developers to integrate with QuickNode, we've created this document that shows how to call RPC methods using libraries in Python, Ruby, JavaScript, cURL.With QuickNode, you either have aΒ dedicated endpointΒ that is always serving traffic from the same location as designated when you booted the endpointΒ or you get access to our global networkΒ which always routes to the nearestΒ availableΒ endpoint.

1. getAccountInfo

Image without caption
Parameters:
  • PubkeyΒ - Pubkey of account to query, as base-58 encoded string.
  • encodingΒ - encoding for Account data, either "base58" (slow), "base64", "base64+zstd", or "jsonParsed".
Retur values:
  • nullΒ - if the req2uested account doesn't exist.
  • objectΒ - otherwise, a JSON object containing:
  • lamportsΒ - number of lamports assigned to this account, as a u64 (64-bit unsigned integer).
  • ownerΒ - base-58 encoded Pubkey of the program this account has been assigned to.
  • dataΒ - data associated with the account, either as encoded binary data or JSON format
  • {'program': 'state'}, depending on encoding parameter.
  • executableΒ - boolean indicating if the account contains a program (and is strictly read-only).
  • rentepochΒ - the epoch at which this account will next owe rent, as u64 (64-bit unsigned integer).

2. getBalance

Image without caption
Parameters:
  • PubkeyΒ - Pubkey of account to query, as base-58 encoded string.
Return values:
  • resultΒ - RpcResponse JSON object withΒ valueΒ field set to the balance.

3. getBlockCommitment

Image without caption
Parameters:
  • blockΒ - block, identified by Slot.
Return values:
  • commitmentΒ - if the requested account doesn't exist.
  • nullΒ - Unknown block.
  • arrayΒ - commitment, array of u64 integers logging the amount of cluster stake in lamports that has voted on the block at each depth from 0 toΒ max_lockout_historyΒ + 1.
  • totalstakeΒ - total active stake, in lamports, of the current epoch.

4. getBlockHeight

Parameters:
  • none
Return values:
  • 64-bit unsigned integerΒ - Current block height.

5. getBlockProduction

Parameters:
  • none
Return values:
  • objectΒ -
  • byidentityΒ - a dictionary of validator identities, as base-58 encoded strings. Value is a two element array containing the number of leader slots and the number of blocks produced.
  • rangeΒ - Block production slot range.
  • firstslotΒ - first slot of the block production information (inclusive).
  • lastslotΒ - last slot of block production information (inclusive).

6. getBlockTime

Image without caption
Parameters:
  • blockΒ - block, identified by Slot
Return values:
  • resultΒ - either of the following values.
  • 64-bit signed integerΒ - estimated production time, as Unix timestamp (seconds since the Unix epoch).
  • nullΒ - if timestamp is not available for the block.

7. getBlocks

Image without caption
Parameters:
  • slotΒ - Start slot, as an u64 integer.
Return values:
  • arrayΒ - An array of numbers listing confirmed blocks between theΒ start_slotΒ and eitherΒ end_slot, if provided, or the latest confirmed block, inclusive. Max range allowed is 500,000 slots.

8. getBlocksWithLimit

Image without caption
Parameters:
  • start_slotΒ - Start slot, as an u64 integer.
  • limitΒ - limit, as u64 integer.
Return values:
  • arrayΒ - An array of numbers listing confirmed blocks starting atΒ start_slotΒ for up toΒ limitΒ blocks, inclusive.

9. getClusterNodes

Parameters:
  • none
Return values:
  • pubkeyΒ - Node public key, as base-58 encoded string.
  • gossipΒ - Gossip network address for the node.
  • tpuΒ - TPU network address for the node.
  • rpcΒ - JSON RPC network address for the node, orΒ nullΒ if the JSON RPC service is not enabled.
  • versionΒ - The software version of the node, orΒ nullΒ if the version information is not available.
  • featuresetΒ - The unique identifier of the node's feature set.
  • shredversionΒ - The shred version the node has been configured to use.

10. getEpochInfo

Parameters:
  • none
Return values:
  • absoluteslotΒ - the current slot.
  • blockheightΒ - the current block height.
  • epochΒ - the current epoch.
  • slotindexΒ - the current slot relative to the start of the current epoch.
  • slotsinepochΒ - the number of slots in this epoch.

11. getEpochSchedule

Parameters:
  • none
Returns values
  • resultΒ - The result field will be an object with the following fields:
  • slotsperepochΒ - the maximum number of slots in each epoch.
  • leaderscheduleslotoffsetΒ - the number of slots before beginning of an epoch to calculate a leader schedule for that epoch.
  • warmupΒ - whether epochs start short and grow.
  • firstnormalepochΒ - first normal-length epoch, log2(slotsPerEpoch) - log2(MINIMUM_SLOTS_PER_EPOCH).
  • firstnormalslotΒ - MINIMUM_SLOTS_PER_EPOCH * (2.pow(firstNormalEpoch) - 1).

12. getGenesisHash

Parameters:
  • none
Return values:
  • result -Β stringΒ - a Hash as base-58 encoded string.

13. getHealth

Parameters:
  • none
Return values:
  • resultΒ - If the node is healthy: "ok" If the node is unhealthy, a JSON RPC error response is returned. The specifics of the error response are UNSTABLE and may change in the future.

14. getIdentity

Parameters:
  • none
Return values:
  • identityΒ - the identity pubkey of the current node (as a base-58 encoded string).

15. getInflationGovernor

Parameters:
  • none
Return values:
  • initialΒ - the initial inflation percentage from time 0.
  • terminalΒ - terminal inflation percentage.
  • taperΒ - rate per year at which inflation is lowered. Rate reduction is derived using the target slot time in genesis config.
  • foundationΒ - percentage of total inflation allocated to the foundation.
  • foundationtermΒ - duration of foundation pool inflation in years.

16. getInflationRate

Parameters: 1
  • none
Return values:
  • totalΒ - total inflation.
  • validatorΒ - inflation allocated to validators.
  • foundationΒ - inflation allocated to the foundation.
  • epochΒ - epoch for which these values are valid.
getLargestAccounts

17. getLeaderSchedule

Parameters:
  • none
Return values:
  • nullΒ - if requested epoch is not found.
  • objectΒ - otherwise, the result field will be a dictionary of validator identities, as base-58 encoded strings, and their corresponding leader slot indices as values (indices are relative to the first slot in the requested epoch)

18. getMaxRetransmitSlot

Parameters:
  • none
Return values:
  • ResultΒ - 64-bit unsigned integerΒ - Slot.

19. getMaxShredInsertSlot

Parameters:
  • none
Return values:
  • ResultΒ - 64-bit unsigned integerΒ - Slot.

20. getMinimumBalanceForRentExemption

Image without caption
Parameters:
  • usizeΒ - account data length
Return values:
  • ResultΒ -Β 64-bit unsigned integerΒ - minimum lamports required in the account.

21. getMultipleAccounts

Image without caption
Parameters:
  • arrayΒ - An array of Pubkeys to query, as base-58 encoded strings.
  • datasliceΒ - (optional) limit the returned account data using the providedΒ offset: 'usize'Β andΒ length: 'usize'Β fields; only available for "base58", "base64" or "base64+zstd" encodings.
Return values:
  • nullΒ - if the requested account doesn't exist.
  • objectΒ - otherwise, a JSON object containing:
  • lamportsΒ - number of lamports assigned to this account, as a u64.
  • ownerΒ - base-58 encoded Pubkey of the program this account has been assigned to.
  • dataΒ - data associated with the account, either as encoded binary data or JSON formatΒ {'program': 'state'}, depending on encoding parameter.
  • executableΒ - boolean indicating if the account contains a program (and is strictly read-only).
  • rentepochΒ - the epoch at which this account will next owe rent, as u64.

22. getRecentPerformanceSamples

Image without caption
Parameters:
  • limitΒ - (optional) number of samples to return (maximum 720).
Return values:
  • slotΒ - Slot in which sample was taken at.
  • numtransactionsΒ - Number of transactions in sample.
  • numslotsΒ - Number of slots in sample.
  • sampleperiodsecsΒ - Number of seconds in a sample window.

23. getSignatureStatuses

Image without caption
Parameters:
  • arrayΒ - An array of transaction signatures to confirm, as base-58 encoded strings.
Return values:
  • nullΒ - Unkown transaction.
  • object
  • slotΒ - The slot the transaction was processed.
  • confirmationsΒ - Number of blocks since signature confirmation, null if rooted, as well as finalized by a supermajority of the cluster.
  • errΒ - Error if transaction failed, null if transaction succeeded.
  • confirmationstatusΒ - The transaction's cluster confirmation status; eitherΒ processed,Β confirmed, orΒ finalized.

24. getSignaturesForAddress

Image without caption
Parameters:
  • account_addressΒ - The account address as base-58 encoded string.
  • limitΒ - (optional) Maximum number of transaction signatures to return (between 1 and 1,000, default: 1,000).
Return values:
  • signatureΒ - Transaction signature as a base-58 encoded string.
  • slotΒ - The slot that contains the block with the transaction as an u64 integer.
  • errΒ - Error if transaction failed, null if transaction succeeded.
  • memoΒ - Memo associated with the transaction, null if no memo is present.
  • blocktimeΒ - Estimated production time, as Unix timestamp (seconds since the Unix epoch) of when transaction was processed. null if not available.

25. getSlot

Parameters:
  • none
Return values:
  • 64-bit unsigned integerΒ - Current slot number.

26. getSlotLeader

Parameters:
  • none
Return values:
  • stringΒ - Node identity Pubkey as base-58 encoded string.

27. getSlotLeaders

Image without caption
Parameters:
  • start slotΒ - Start slot, as 64-bit unsigned integer.
  • limitΒ - Limit, as 64-bit unsigned integer.
Return values:
  • arrayΒ - Node identity public keys as base-58 encoded strings.

28. getStakeActivation

Image without caption
Parameters:
  • PubkeyΒ - Pubkey of stake account to query, as base-58 encoded string.
Return values:
  • stateΒ - the stake account's activation state, one of:Β active,Β inactive,Β activating,Β deactivating.
  • activeΒ - stake active during the epoch.
  • inactiveΒ - stake inactive during the epoch.

29. getSupply

Parameters:
  • none
Return values:
  • totalΒ - Total supply in lamports represented by a u64 integer.
  • circulatingΒ - Circulating supply in lamports represented by a u64 integer.
  • noncirculatingΒ - Non-circulating supply in lamports represented by a u64 integer.
  • noncirculatingaccountsΒ - an array of account addresses of non-circulating accounts, as strings.

30. getTokenAccountBalance

Image without caption
Parameters:
  • PubkeyΒ - Pubkey of account delegate to query, as base-58 encoded string.
Return values:
  • amountΒ - The raw balance without decimals, a string representation of u64 integer.
  • decimalsΒ - Number of base 10 digits to the right of the decimal place.
  • uiamountΒ - The balance, using mint-prescribed decimals. -- DEPRECATED
  • uiamountstringΒ - The balance as a string, using mint-prescribed decimals.

31. getTokenAccountsByDelegate

Image without caption
Parameters:
  • stringΒ - Pubkey of account delegate to query, as base-58 encoded string.
  • programidΒ - Pubkey of the Token program ID that owns the accounts, as base-58 encoded string.
  • encodingΒ - (encoding for Account data, either "base58" (slow), "base64", "base64+zstd" or "jsonParsed". "jsonParsed" encoding attempts to use program-specific state parsers to return more human-readable and explicit account state data. If "jsonParsed" is requested but a valid mint cannot be found for a particular account, that account will be filtered out from results.
Return values:
  • pubkeyΒ - The account Pubkey as base-58 encoded string.
  • accountΒ - Number of base 10 digitals to the right of the decimal place, a u8 integer.
  • lamportsΒ - Number of lamports assigned to this account, as a u64.
  • ownerΒ - Base-58 encoded Pubkey of the program this account has been assigned to.
  • dataΒ - Token state data associated with the account, either as encoded binary data or in JSON format.
  • executableΒ - Boolean indicating if the account contains a program (and is strictly read-only).
  • rentepochΒ - The epoch at which this account will next owe rent, as u64.

32. getTokenAccountsByOwner

Image without caption
Parameters:
  • PubkeyΒ - Pubkey of the account owner, as base-58 encoded string.
  • mintΒ - Pubkey of the specific token Mint to limit accounts to, as base-58 encoded string.
  • encodingΒ - (encoding for Account data, either "base58" (slow), "base64", "base64+zstd" or "jsonParsed". "jsonParsed" encoding attempts to use program-specific state parsers to return more human-readable and explicit account state data. If "jsonParsed" is requested but a valid mint cannot be found for a particular account, that account will be filtered out from results.
Return values:
  • pubkeyΒ - The account Pubkey as base-58 encoded string.
  • accountΒ - Number of base 10 digitals to the right of the decimal place, a u8 integer.
  • lamportsΒ - Number of lamports assigned to this account, as a u64.
  • ownerΒ - Base-58 encoded Pubkey of the program this account has been assigned to.
  • dataΒ - Token state data associated with the account, either as encoded binary data or in JSON format.
  • executableΒ - Boolean indicating if the account contains a program (and is strictly read-only).
  • rentepochΒ - The epoch at which this account will next owe rent, as u64.

33. getTokenLargestAccounts

Image without caption
Parameters:
  • MintΒ - Pubkey of token Mint to query, as base-58 encoded string
Return values:
  • addressΒ - the address of the token account.
  • amountΒ - The raw token account balance without decimals, a string representation of a u64 integer.
  • decimalsΒ - Number of base 10 digitals to the right of the decimal place, a u8 integer.
  • uiamountΒ - The token account balance as a number, using mint-prescribed decimals. -Β DEPRECATED
  • uiamountstringΒ - The token account balance as a string, using mint-prescribed decimals.

34. getTokenSupply

Image without caption
Parameters:
  • MintΒ - Pubkey of token Mint to query, as base-58 encoded string
Return values:
  • amountΒ - The raw total token supply without decimals, a string representation of a u64 integer.
  • decimalsΒ - Number of base 10 digitals to the right of the decimal place, a u8 integer.
  • uiamountΒ - The total token supply, using mint-prescribed decimals. -Β DEPRECATED
  • uiamountstringΒ - The total token supply as a string, using mint-prescribed decimals.

35. getTransactionCount

Parameters:
  • None
Return values:
  • resultΒ - u64 integer of how many transaction counts were returned from the ledger.

36. getVersion

Parameters:
  • None
Return values:
  • solana-coreΒ - Software version of solana-core.
  • feature-setΒ - Unique identifier of the current software's feature set.

37. getVoteAccounts

Parameters:
  • None
Return values:
  • votepubkeyΒ - The vote account address as a base-58 encoded string.
  • nodepubkeyΒ - Validator identity, as base-58 encoded string.
  • activaedstakeΒ - The stake, in lamports, delegated to this vote account and active in this epoch. Represented as an u64 integer.
  • epochvoteaccountΒ - Boolean, whether the vote account is staked for this epoch.
  • lastvoteΒ - u64 integer represntation of the most recent slot voted on by this vote account.
  • epochcreditsΒ - History of how many credits earned by the end of each epoch, as an array of arrays containing: [epoch, credits, previousCreidts].

38. minimumLedgerSlot

Parameters:
  • None
Return values:
  • integerΒ - The lowest slot that the node has information of. This number may increase over time if the node is purging older ledger data.

39. qn_fetchNFTs

Image without caption
Parameters:
  • Wallet-addressΒ - The wallet address to check for NFTs.
Return values:
  • objectΒ - Custom Response Object, or null if no NFTs are found:
  • ownerΒ - The wallet address we checked for NFTs.
  • assetsΒ - An array of objects representing NFTs with the following shape:
  • nameΒ - the name of this specific NFT.
  • tokenAddressΒ - the token address of this NFT in its collection.
  • collectionNameΒ - the name of this NFT's collection.
  • imageUrlΒ - the URL where the image for this NFT can be seen.
  • collectionAddressΒ - the contract address that this NFT lives in.
  • traitsΒ - an array of traits that this NFT has.
  • creatorsΒ - an array of creator addresses for this NFT token.
  • chainΒ - what chain this aggregation happened on.
  • networkΒ - what network this aggregation happened on.
  • provenanceΒ - an array of transfers from previous owners for this NFT. It's important to note that this only has owners from recent blocks, for full ownership history, you'll need to enable the archive add-on.Β This is only available for select customers at this time.

40. qn_fetchNFTsByCreator

Image without caption
Parameters:
  • creatorΒ β€” (String) β€” The NFT creator's wallet address to check for.
  • pageΒ β€” (Integer - optional) The page number you would like returned. Page numbers start at 1 and end at "totalPages". If omitted, defaults to the first page (page 1). If the page number requested is less than 1 or higher than "totalPages", an empty assets array will be returned.
  • perPageΒ β€” (Integer - optional) β€” The maximum amount of NFT assets to return on each page. You can request up to 100 items per page. If omitted, defaults to 10 items per page.
Return values:
  • objectΒ - Custom response object:
  • ownerΒ - The creator's wallet address we checked for NFTs.
  • assetsΒ - An array of assets with the following object shape or an empty array if no NFTs are found:
  • nameΒ - Name of the individual NFT.
  • collectionNameΒ - The NFT project's collection name.
  • tokenAddressΒ - The token address of the NFT.
  • collectionAddressΒ - The address that all of the individal tokenAddresses are related to.
  • imageUrlΒ - URL pointing to the asset. Usually a .png image.
  • traitsΒ - An array of objects with the following shape.
  • trait_typeΒ - The name of the trait.
  • valueΒ - The kind of trait under this specific type.
  • chainΒ - The blockchain the NFT belongs to.
  • creatorsΒ - An array of addresses that created the collection.
  • networkΒ - The name of the network the NFT is on.
  • descriptionΒ - Description of the NFT project.
  • provenanceΒ - History of the NFT's transaction data. It is an array of objects with the following shape:
  • txHashΒ - The hash of the transaction.
  • blockNumberΒ - The block number the transaction happened on.
  • dateΒ - When the transaction occured.
  • totalPagesΒ - Total number of pages of assets available for this creator address, according to requested number of items per page (perPage parameter).
  • pageNumberΒ - The current page number returned with this response.
  • totalItemsΒ - How many assets in total are available for this creator address.
Share
Content