banner
Eget

Eget

域名里的erection泛指建筑物之类

Web3.0 Ethereum Smart Contract - python3

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.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.