Closed
Description
Hello there,
I just installed the latest version of Uniswap Python and it fails here:
from uniswap import Uniswap
from web3 import Web3
address = None # or None if you're not going to make transactions
private_key = None # or None if you're not going to make transactions
version = 2 # specify which version of Uniswap to use
bsc = "https://bsc-dataseed.binance.org/"
web3 = Web3(Web3.HTTPProvider(bsc))
print(web3.isConnected())
uniswap = Uniswap(address=address, private_key=private_key, version=version, web3=web3)
The web3 connection return true but I keep getting this error:
Traceback (most recent call last):
File "C:/Users/User/PycharmProjects/XX/XX/UniSwap_API_test.py", line 24, in <module>
uniswap = Uniswap(address=address, private_key=private_key, version=version, web3=web3)
File "C:\Users\User\PycharmProjects\XX\venv\lib\site-packages\uniswap\uniswap.py", line 121, in __init__
router_contract_addr = _router_contract_addresses_v2[self.network]
KeyError: 'binance'
Could anyone help me out?
Metadata
Metadata
Assignees
Labels
No labels