Accessing Ethereum with Python via web3.py

If you want to access Ethereum through Python, you can see from Ethereum’s official Github that there are two modules available: web3.py and pyethereum. As far as my current understanding is concerned, the difference between the two is that web3.py is mainly used as a client for external access to Ethereum, that is to say, […]

Implementation of the Ethereum blockchain ERC-721 protocol (NFT token standard)

1. What is the ERC-721 standard ERC-721 is a standard for NFT (non-fungible tokens) on the Ethereum blockchain. It is a template or format that other developers follow to create unique tokens that represent digital assets, and Each ERC-721 token is unique. Using a unified standard can make the contract code simpler and more reusable. […]

Install the Ethereum compilation environment and set contract functions under Ubuntu 16.04 (support geth 1.6 and solc 0.4.16 and above)

Since I don’t have an Apple computer, I use the Linux environment to operate here, and Windows is also possible, but I haven’t tried it, and I have read many articles, saying that I will encounter many problems. This paper addresses the following issues: 1. After geth is upgraded to version 1.6, it no longer […]

web3 connects to Ethereum, Xverse, and UniSat wallets to obtain signatures

Connect to Ethereum Here is my wallet connection using Metamask MetaMask SDK Preparation Install SDK yarn add @metamask/sdk // or npm install @metamask/sdk Install ethers (I directly import the JS file here) <!– will export a global variable: ethers –> <script src=”//i2.wp.com/cdn.ethers.io/scripts/ethers-v4.min.js” charset=”utf-8″ type=”text/javascript”> </script> Writing logic // 1. Import the SDK here according to […]

Solidity–In-depth study of Ethereum EVM

Flowchart Account Account Type Creation Cost Transaction Initiation Usage Scenario Function External Account (Controlled by the owner of the private key) Creating an account is free You can initiate transactions independently Only ETH and tokens can be carried out between all external accounts Transaction 1. Accept, hold and send ETH and token 2. Interact with […]

Ethereum node discovery protocol discV4

The protocol uses a Kademlia-like Distributed Hash Table (DHT) for storing information about Ethereum nodes. The Kademlia structure was chosen because it is an efficient way to organize a distributed node index and has a low-diameter topology. In this protocol, nodes maintain network topology in a distributed manner by storing node information in buckets with […]

Android creates an Ethereum wallet

Create an Ethereum HD wallet HD Wallet Hierarchical Deterministic Wallet Let me briefly introduce the principle and composition of the wallet: Each wallet account contains a key pair, namely private key and public key. The private key (k) is a number, usually chosen at random. With the private key, we can use the one-way encryption […]