523min

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.
Document image

2. On the dashboard select Tab: Nodes and then click "Create node" button

Document image

3. Select the preferred plan.

Document image

4. Select node and network.

Document image

5. Pay the selected plan.

Document image

6. Select your nodes

Document image

7. Go to "Get Started" and copy the HTTP PROVIDER link.

Document image

8. Go to the editor Plugin Tab and paste the HTTP PROVIDER link into the plugin settings. 

Document image

´╗┐´╗┐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

Document image

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

Document image

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

´╗┐

Document image

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.
  • transactions┬á- Array of transaction objects - please see┬áeth_getTransactionByHash┬áfor exact shape.
  • uncles┬á- Array of uncle hashes.

´╗┐

6. eth_chainId

´╗┐

Parameters:

  • none

´╗┐

Return values:

quantity - EIP155 Chain ID.

´╗┐

7. eth_estimateGas

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

Parameters:

  • hash┬á- Hash of the block.

´╗┐

Return values:

  • result┬á- Integer number of transactions in the block.

´╗┐

10. eth_getBlockTransactionCountByNumber

Document image

´╗┐

Parameters:

  • Block-number┬á- Block number in hexadecimal format with 0x prefix.

´╗┐

Return values:

  • result┬á- Integer number of transactions in the block.

´╗┐

11. eth_getCode

Document image

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

Document image

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

Parameters:

´╗┐

Return values:

array - Array of one of the following, depending on the filter type, or empty if no changes since last poll:

ÔÇó┬áeth_newBlockFilter´╗┐

  • 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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

´╗┐

Document image

´╗┐

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

´╗┐

Document image

´╗┐

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

´╗┐

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

´╗┐

Document image

´╗┐

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

´╗┐

Document image

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

´╗┐

Document image

´╗┐

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

´╗┐

Document image

´╗┐

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

´╗┐

Document image

´╗┐

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

Document image

´╗┐

Parameters:

  • usize┬á- account data length

´╗┐

Return values:

  • Result┬á-┬á64-bit unsigned integer┬á- minimum lamports required in the account.

´╗┐

21. getMultipleAccounts

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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

Document image

´╗┐

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.

´╗┐

41. sendTransaction

´╗┐

Document image

´╗┐

Parameters:

  • string┬á- fully-signed Transaction, as encoded string.

´╗┐

Return values:

  • string┬á- First Transaction Signature embedded in the transaction, as base-58 encoded string (transaction id)

´╗┐

42. simulateTransaction

Document image

´╗┐

Parameters:

  • string┬á- Transaction, as an encoded string. The transaction must have a valid blockhash, but is not required to be signed.

´╗┐

Return values:

  • err┬á- Error if transaction failed, null if transaction succeeded.
  • logs┬á- EArray of log messages the transaction instructions output during execution, null if simulation failed before the transaction was able to execute (for example due to an invalid blockhash or signature verification failure).
  • accounts┬á- array of accounts with the same length as the┬áaccounts.addresses┬áarray in the request
    • null┬á- if the account doesn't exist or if┬áerr┬áis not null
    • 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.

´╗┐

´╗┐

Changelogs

´╗┐

´╗┐

Live Demo: https://zeroqode-demo-27.bubbleapps.io/quicknode

´╗┐

Demo Editor: https://bubble.io/page?type=page&name=quicknode&version=live&id=zeroqode-demo-27&test_plugin=1640580598085x515614555609235460_current&tab=tabs-1

´╗┐

´╗┐

´╗┐

Updated 02 May 2022
Did this page help?
Yes
No