WETH9

World Chain ERC-20 Token

0x4200000000000000000000000000000000000006

Solidity v0.5.17+commit.d19bba13

Fungible token following the ERC-20 standard.

🤖
透過你的 AI 查詢此合約
參考: 0x4200000000000000000000000000000000000006
範例提示詞: "Tell me the current state of world/0x4200000000000000000000000000000000000006"
還沒有接入 AI?→ mcp.smarts.md
World Chain 在 Smarts 上是僅文件鏈:原始碼和 ABI 已索引,但目前不提供即時鏈上資料(狀態、最新事件、管理員概覽)。AI 代理仍可透過 MCP 呼叫 get_contract_info 和 get_contract_source。

概覽

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

讀取函式

allowance(address, address) view

Return the remaining number of tokens that spender is allowed to transfer from owner.✨ AI

參數

名稱 類型 描述
address
address

回傳值

名稱 類型 描述
uint256 Remaining token allowance as an unsigned integer (uint256).✨ AI
balanceOf(address) view

Return the token balance for a specified address.✨ AI

參數

名稱 類型 描述
address

回傳值

名稱 類型 描述
uint256 The token balance of the given address as a uint256 in the token's smallest unit.✨ AI
decimals() view

Returns the number of decimal places used by the token.✨ AI

回傳值

名稱 類型 描述
uint8 The token's decimals as an unsigned 8-bit integer (e.g., 18).✨ AI
name() view

Return the token's name as a human-readable string.✨ AI

回傳值

名稱 類型 描述
string The token name string, e.g. "Wrapped Ether".✨ AI
symbol() view

Return the token's short symbol used to identify this token.✨ AI

回傳值

名稱 類型 描述
string The token symbol string (for example, "WETH").✨ AI
totalSupply() view

Returns the total supply of WETH tokens.✨ AI

回傳值

名稱 類型 描述
uint256 Total number of WETH tokens in existence, expressed in the token's smallest unit (wei).✨ AI

寫入函式

approve(guy: address, wad: uint256) nonpayable

Approve specified address to spend up to given token amount on your behalf.✨ AI

參數

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

回傳值

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

Deposit ETH and mint an equal amount of WETH credited to the sender's balance.✨ AI

transfer(dst: address, wad: uint256) nonpayable

Transfers wad tokens from the caller's account to dst.✨ AI

參數

名稱 類型 描述
dst address Recipient address.✨ AI
wad uint256 Amount of tokens to transfer, in wei (token smallest unit).✨ AI

回傳值

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

Transfer wad tokens from src to dst using the caller's allowance; revert on insufficient balance or allowance.✨ AI

開發者: Treats allowance of uint(-1) as infinite and does not decrease it. Emits Transfer event.✨ AI

參數

名稱 類型 描述
src address Address to debit tokens from.✨ AI
dst address Address to credit tokens to.✨ AI
wad uint256 Amount of tokens to transfer, in the token's smallest unit.✨ AI

回傳值

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

Withdraws the specified amount of ETH by converting WETH to ETH and transfers it to your account.✨ AI

參數

名稱 類型 描述
wad uint256 Amount of WETH to convert to ETH, denominated in wei.✨ AI

事件

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