有么有可以批量查询多个区块中所有交易详情的接口

区块浏览器提供的查询多个区块的接口要传入交易关联的地址,只能查输入地址的交易,有没有不根据地址查询区块中的所有交易记录

请先 登录 后评论

最佳答案 2024-02-28 23:08

RPC 默认提供根据区块查询所有交易的功能。

eth_getTransactionByBlockNumberAndIndex
eth_getTransactionCount

ethers.js 等库有对应的接口 : https://learnblockchain.cn/ethers_v5/api/providers/provider/#Provider-getBlockWithTransactions

请先 登录 后评论

其它 0 个回答