【发布时间】:2021-05-08 18:11:59
【问题描述】:
我是 Web3 的新手。 我在 infura.io 中创建了一个项目。
w3 = Web3(Web3.HTTPProvider('https://ropsten.infura.io/v3/PROJECT_ID'))
w3.isConnected() # True
cont = w3.eth.contract(address='my_contract_address', abi = my_abi)
cont.all_functions() # working well, return all functions inside contract
cont.funtions.get_info().call
在最后一行之后出现错误
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://ropsten.infura.io/v3/PROJECT_ID
这是什么意思,如何解决?
【问题讨论】:
标签: python-3.x blockchain ethereum web3