Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPC as web3 provider? #81

Open
billbradley opened this issue Jun 29, 2022 · 0 comments
Open

IPC as web3 provider? #81

billbradley opened this issue Jun 29, 2022 · 0 comments

Comments

@billbradley
Copy link

You can currently specify a URL as the web3 provider. However, you can't use IPC if you happen to be running your own node.

I think this could be fixed by changing line 119 of cli.py from:

    web3 = Web3(Web3.HTTPProvider(args.web3))

to

    # Assume "args.web3" is an URL; if no connection,
    # see if it's an IPC file.
    web3 = Web3(Web3.HTTPProvider(args.web3))
    if not(web3.isConnected()):
        web3 = Web3(Web3.IPCProvider(args.web3))

I don't have permission to submit a PR or I'd do that myself :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant