Skip to content

Instantly share code, notes, and snippets.

@changwu-tw
Last active December 9, 2021 21:20
Show Gist options
  • Save changwu-tw/f21f4dfed707048808d686b24de53dfa to your computer and use it in GitHub Desktop.
Save changwu-tw/f21f4dfed707048808d686b24de53dfa to your computer and use it in GitHub Desktop.
INFURA HTTPProvider python version
# pip install web3
from web3 import Web3, HTTPProvider
headers = {'auth': ('', 'WEB3_INFURA_PROJECT_SECRET')}
w3 = Web3(HTTPProvider('https://ropsten.infura.io/v3/<WEB3_INFURA_API_SECRET>', headers))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment