Skip to content

Add quik node as web3 provider in docs #1692

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

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion docs/providers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,33 @@ Valid formats for this environment variable are:
- ``https://node.ontheweb.com``
- ``ws://127.0.0.1:8546``


.. _custom_auto_providers:

Auto-initialization Provider Shortcuts
--------------------------------------

There are a couple auto-initialization shortcuts for common providers.

QuikNode
~~~~~~~~~~~~~~

If you want to use QuikNode, grab a free Node URL from https://quiknode.io.

To setup QuikNode, then set the following environment variable::

$ export WEB3_PROVIDER_URI=https://young-early-dawn.quiknode.pro/<your-token-here>/

By doing the above step we are now able to take advantage of web3.py's auto-initialization.

.. code-block:: python

>>> from web3.auto import w3

# confirm that the connection succeeded
>>> w3.isConnected()
True


Infura Mainnet
~~~~~~~~~~~~~~

Expand All @@ -182,6 +201,7 @@ an optional secret key, set the environment variable ``WEB3_INFURA_API_SECRET``:
# confirm that the connection succeeded
>>> w3.isConnected()
True


Geth dev Proof of Authority
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down