WETH

Ethereum ERC-20 Token

0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

Solidity v0.4.19+commit.c4cbbb05

Fungible token following the ERC-20 standard.

🤖
透過你的 AI 查詢此合約
參考: weth-eth 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
範例提示詞: "Tell me the current state of weth-eth"
還沒有接入 AI?→ mcp.smarts.md

管理與風險

誰能修改規則?

No admin risk controls detected from the verified ABI.

概覽

讀取函式
6
寫入函式
5
事件
4

讀取函式

Block #25,177,561 · just now
name() view → Wrapped Ether

Returns the token name.✨ AI

回傳值

名稱 類型 描述
string The token name as a string, for example Wrapped Ether.✨ AI
totalSupply() view → 2,273,893.55 WETH

Returns the total number of WETH tokens in existence.✨ AI

回傳值

名稱 類型 描述
uint256 The total supply of WETH tokens as a uint256, denominated in the token's smallest unit (wei).✨ AI
decimals() view → 18

Return the number of decimal places used to display token balances.✨ AI

回傳值

名稱 類型 描述
uint8 The token's decimals (uint8) used to format and display balances.✨ AI
balanceOf(address) view

Returns the token balance of a given address.✨ AI

參數

名稱 類型 描述
address

回傳值

名稱 類型 描述
uint256 The token balance (uint256) of the specified address, denominated in the token's base unit.✨ AI
symbol() view → WETH

Get the token's symbol for display in wallets and interfaces.✨ AI

回傳值

名稱 類型 描述
string The token symbol as a string (e.g., "WETH").✨ AI
allowance(address, address) view

Return the remaining WETH token allowance that a spender can transfer from an owner.✨ AI

參數

名稱 類型 描述
address
address

回傳值

名稱 類型 描述
uint256 Remaining number of tokens the spender is allowed to transfer from the owner.✨ AI

寫入函式

approve(guy: address, wad: uint256) nonpayable

Allow an address to spend up to a specified amount of your tokens.✨ AI

參數

名稱 類型 描述
guy address Address approved to spend tokens.✨ AI
wad uint256 Maximum token amount the approved address may spend.✨ AI

回傳值

名稱 類型 描述
bool True if the approval succeeded, otherwise false.✨ AI
transferFrom(src: address, dst: address, wad: uint256) nonpayable

Transfers wad tokens from src to dst using the caller's allowance.✨ AI

參數

名稱 類型 描述
src address Address to transfer tokens from.✨ AI
dst address Address to transfer tokens to.✨ AI
wad uint256 Amount of tokens to transfer, in wei.✨ AI

回傳值

名稱 類型 描述
bool True if the transfer succeeded.✨ AI
withdraw(wad: uint256) nonpayable

Withdraw the specified amount of WETH and receive the corresponding ETH to the caller.✨ AI

參數

名稱 類型 描述
wad uint256 Amount of WETH to unwrap, denominated in wei.✨ AI
transfer(dst: address, wad: uint256) nonpayable

Transfer wad tokens from the caller to the specified destination address.✨ AI

參數

名稱 類型 描述
dst address Recipient address that receives the tokens.✨ AI
wad uint256 Amount of tokens (in wei) to transfer.✨ AI

回傳值

名稱 類型 描述
bool True if the transfer succeeded, otherwise false.✨ AI
deposit() payable

Accepts ETH and credits the caller with an equivalent amount of WETH tokens.✨ AI

事件

Approval(src: address, guy: address, wad: uint256)
名稱 類型 已索引 描述
src address
guy address
wad uint256
Transfer(src: address, dst: address, wad: uint256)
名稱 類型 已索引 描述
src address
dst address
wad uint256
Deposit(dst: address, wad: uint256)
名稱 類型 已索引 描述
dst address
wad uint256
Withdrawal(src: address, wad: uint256)
名稱 類型 已索引 描述
src address
wad uint256