Query Ethereum Blockchain with Python

Publié le: 08 avril 2022
sur la chaîne: Trevor French
160
7

How to use Python to query the Ethereum blockchain in under a minute.

To be specific, this video will show you how to get the eth balance for a given wallet address/ens domain.

You can set up a quick node for free at https://infura.io/ or https://www.quicknode.com/.

Full code here:

TITLE: Querying the Ethereum Blockchain with Python
DESCRIPTION:
Uses web3.py to query your ETH balance
TODO:
-
-
-

MODULES
from web3 import Web3, HTTPProvider

CONNECT TO NODE
w3 = Web3(HTTPProvider('[YOUR NODE]'))

GET CURRENT ETH BALANCE
balance = w3.eth.get_balance('[YOUR ADDRESS]') / 1e18
print(balance)


Sur cette page du site, vous pouvez voir la vidéo en ligne Query Ethereum Blockchain with Python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Trevor French 08 avril 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 160 fois et il a aimé 7 téléspectateurs. Bon visionnage!