The content of this article is applicable to Ethereum forks such as Binance Smart Chain.
Obtaining a basic smart contract on Ethereum is a simple matter. Up to now, we can still find some tools on the internet that allow for one-click issuance of tokens. However, interacting with smart contracts programmatically is a different story. If you want to interact with smart contracts using Python 3, then you can continue reading.
Web3.py
A library for interacting with Ethereum. For example, if you want your program to make transfers, you will need it.
pip3 install web3
Node object
w3 = Web3(Web3.HTTPProvider("URL")
- URL Which chain do you need to connect to? It's similar to an RPC. You can search on Baidu or Google for more information.
The rest will be written tomorrow.