Home > web3.0 > Ethereum 2 wallet addresses

Ethereum 2 wallet addresses

全网都在看
Release: 2024-04-07 16:40:33
Original
940 people have browsed it

Ethereum wallet addresses are mainly divided into two types: Externally Owned Address (EOA), starting with 0x and controlled by a private key. The contract address, also starting with 0x, is created by the smart contract code and is used to store Ethereum and execute the contract code

Ethereum 2 wallet addresses

Two wallet addresses for Ethereum

There are two main types of Ethereum wallet addresses, namely externally owned addresses (EOA) and contract addresses.

Externally Owned Address (EOA)

  • Starts with 0x, followed by 40 hexadecimal characters (42 characters total)
  • Controlled by a private key
  • Used to send and receive Ether and interact with smart contracts
  • Belongs to an individual or organization

Contract address

  • Also starts with 0x but is followed by 40 hexadecimal characters (42 characters total)
  • Created by the code of the smart contract
  • is used for storage Ethereum and the execution smart contract code
  • belong to the smart contract itself, not the individual or organization

Distinguish between EOA and contract address

  • Creation method: EOA is created by the private key, and the contract address is created by deploying the smart contract code.
  • Control: EOA is controlled by the private key, while the contract address is controlled by the smart contract code.
  • Usage: EOA is used for regular transactions, while the contract address is used for interacting with smart contracts.
  • Address range: The address range of EOA is 0x000...000 to 0xffff...ffff, while the address range of the contract address is 0x1000...000 to 0xffffffff.

The above is the detailed content of Ethereum 2 wallet addresses. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template