Single flight RPC implements retries in each request when needed, while allowing you to get the block and transaction information in only one call.
It conforms to the RPC spec and fulfills block traces faster than calling the RPC directly.
It supports returning all transactions in a block with a single call.
The qngetBlockWithReceipts and qngetReceipts requests each cost the chain default (see the API credits pricing page for more details), however they will each make additional requests to your endpoint which will use additional API credits.
For blockchains that support eth_getBlockReceipts:
- The qn_getReceipts method will make 1 call
- The qn_getBlockWithReceipts method will make 1 call
For blockchains that don’t support eth_getBlockReceipts:
- The qngetReceipts method will make X number of ethgetTransactionReceipt calls, where X is the number of transactions in the block.
- The qngetBlockWithReceipts method will make X number of ethgetTransactionReceipt calls, where X is the number of transactions in the block, and 1 additional call to eth_getBlockByNumber.
Examples:
If method qngetReceipts is called on Ethereum Mainnet, you will be charged 20 credit for the qngetblockwithreceipts call, plus 20 credits for eth_getBlockReceipts.
Total credits used: 20 + 20 = 40.
If method qngetBlockWithReceipts is called on Fantom Mainnet with a block that contains 50 transactions, you will be charged 20 credit for qngetBlockWithReceipts, 20 credits for ethgetBlockByNumber, plus an additional 1000 credits for ethgetTransactionReceipts (50 calls * 20 credits).
Total credits used: 20 + 20 + (20*50) = 1040