小编swa*_*ete的帖子

使用 python 在 Binance 智能链上出现 Web3 ExtraDataLength 错误

我试图提取特定区块上发生的交易,但我被困在这里:

from web3 import Web3

bsc = "https://bsc-dataseed.binance.org/"
web3 = Web3(Web3.HTTPProvider(bsc))

block = web3.eth.get_block('latest')

web3.exceptions.ExtraDataLengthError: The field extraData is 97 bytes, but should be 32. It is quite likely that you are connected to a POA chain. Refer to http://web3py.readthedocs.io/en/stable/middleware.html#geth-style-proof-of-authority for more details.
Run Code Online (Sandbox Code Playgroud)

我想获取某个钱包地址涉及的交易,但我不知道为什么 web3 不允许我从 bsc 节点提取该交易。

python blockchain web3py binance-smart-chain

4
推荐指数
1
解决办法
3206
查看次数

标签 统计

binance-smart-chain ×1

blockchain ×1

python ×1

web3py ×1