Skip to content

Exception: Unknown netid: 80001 #314

Open

Description

@philmoreau

After installing either through pip or git, and running the simple code in the "Getting Started" page of the doc, I get :

Traceback (most recent call last):
  File "/app/main.py", line 29, in <module>
    main()
  File "/app/main.py", line 16, in main
    uniswap = Uniswap(address=address, private_key=private_key, version=version, provider=provider)
  File "/usr/local/lib/python3.9/site-packages/uniswap/uniswap.py", line 128, in __init__
    raise Exception(f"Unknown netid: {self.netid}")  # pragma: no cover
Exception: Unknown netid: 80001

Activity

  1. ErikBjare commented on Jan 15, 2023

    @ErikBjare
    Member

    Are you using a Polygon testnet RPC? (a brief search suggested so)

    You need to add the appropriate network here, including contract addresses for the deployment you want to use: https://github.com/uniswap-python/uniswap-python/blob/master/uniswap/constants.py

  2. philmoreau commented on Jan 15, 2023

    @philmoreau
    Author

    I see. Thanks for pointing me in the right direction! I'll try to figure out how this works.

    Amazing reply time by the way.

  3. koots1234 commented on Dec 27, 2023

    @koots1234

    I'm also having this same error, using Sepolia Testnet, I've checked constants.py and its listed in _netid_to_name. Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions