Skip to content

Commit

Permalink
Merge pull request #887 from wuzhong-papermoon/wuzhong-update-RPC-sup…
Browse files Browse the repository at this point in the history
…port

Adding eth_getBlockReceipts and Batch request to rpc-support.md
  • Loading branch information
eshaben committed Apr 30, 2024
2 parents 5d57563 + 3bccf09 commit 3fdef02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builders/get-started/eth-compare/rpc-support.md
Expand Up @@ -30,6 +30,7 @@ The basic JSON-RPC methods from the Ethereum API supported by Moonbeam are:
- **[eth_getStorageAt](https://eth.wiki/json-rpc/API#eth_getstorageat){target=\_blank}** — returns content of the storage at a given address
- **[eth_getBlockByHash](https://eth.wiki/json-rpc/API#eth_getblockbyhash){target=\_blank}** — returns information about the block of the given hash including `baseFeePerGas` on post-London blocks
- **[eth_getBlockByNumber](https://eth.wiki/json-rpc/API#eth_getblockbynumber){target=\_blank}** — returns information about the block specified by block number including `baseFeePerGas` on post-London blocks
- **[eth_getBlockReceipts](https://docs.alchemy.com/reference/eth-getblockreceipts){target=\_blank}** — returns all transaction receipts for a given block
- **[eth_getTransactionCount](https://eth.wiki/json-rpc/API#eth_gettransactioncount){target=\_blank}** — returns the number of transactions sent from the given address (nonce)
- **[eth_getBlockTransactionCountByHash](https://eth.wiki/json-rpc/API#eth_getblocktransactioncountbyhash){target=\_blank}** — returns the number of transactions in a block with a given block hash
- **[eth_getBlockTransactionCountByNumber](https://eth.wiki/json-rpc/API#eth_getblocktransactioncountbynumber){target=\_blank}** — returns the number of transactions in a block with a given block number
Expand Down Expand Up @@ -93,3 +94,7 @@ The supported methods from Geth's [debug](https://geth.ethereum.org/docs/interac
- **[txpool_status](https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-txpool#txpool-status){target=\_blank}** - returns the total number of transactions currently pending, waiting to be included in the next block(s), and queued for future execution

For a dedicated tutorial for these debug and trace methods, check out the [Debug API & Trace Module](/builders/build/eth-api/debug-trace/){target=\_blank} guide.

## Batch Requests {: #batch-request }

Moonbeam clients support [batch requests](https://geth.ethereum.org/docs/interacting-with-geth/rpc/batch){target=\_blank}, allowing you to send multiple data requests simultaneously in an array. This reduces network delays by fetching data in a single call, which is especially beneficial for retrieving large amounts of independent data.

0 comments on commit 3fdef02

Please sign in to comment.