BlockChain
Web3.py
Create new instance of web3.py
from web3 import Web3
w3_instance = Web3(Web3.HTTPProvider("<RPC_URL>")
assert w3_instance.is_connected()Get storage at address (usefull to get private variables):
Get block information:
Get contract instance:
Get public variables or view/pure functions:
Call transact function (my_awesome_function):
You can also call payable function you just need to add the value, and gas in the tx_data:
Usefull link
Last updated