WETH9

World Chain ERC-20 Token Browse chains

0x4200000000000000000000000000000000000006

Solidity v0.5.17+commit.d19bba13

Fungible token following the ERC-20 standard.

🤖
Query this contract from your AI
Reference: 0x4200000000000000000000000000000000000006
Sample prompt: "Tell me the current state of world/0x4200000000000000000000000000000000000006"
No AI wired up yet? → mcp.smarts.md · Browse chains
World Chain is a docs-only chain on Smarts: source code and ABI are indexed, but live on-chain data (state, recent events, admin profile) is not currently available. AI agents can still query get_contract_info and get_contract_source via MCP.

Overview

Read Functions
6
Write Functions
5
Events
4

Read Functions

allowance(address, address) view

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

Parameters

Name Type Description
address
address

Returns

Name Type Description
uint256 Remaining token allowance as an unsigned integer (uint256).✨ AI
balanceOf(address) view

Return the token balance for a specified address.✨ AI

Parameters

Name Type Description
address

Returns

Name Type Description
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

Returns

Name Type Description
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

Returns

Name Type Description
string The token name string, e.g. "Wrapped Ether".✨ AI
symbol() view

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

Returns

Name Type Description
string The token symbol string (for example, "WETH").✨ AI
totalSupply() view

Returns the total supply of WETH tokens.✨ AI

Returns

Name Type Description
uint256 Total number of WETH tokens in existence, expressed in the token's smallest unit (wei).✨ AI

Write Functions

approve(guy: address, wad: uint256) nonpayable

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

Parameters

Name Type Description
guy address Address being approved to spend tokens.✨ AI
wad uint256 Maximum token amount the approved address may spend (in wei).✨ AI

Returns

Name Type Description
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

Parameters

Name Type Description
dst address Recipient address.✨ AI
wad uint256 Amount of tokens to transfer, in wei (token smallest unit).✨ AI

Returns

Name Type Description
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

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

Parameters

Name Type Description
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

Returns

Name Type Description
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

Parameters

Name Type Description
wad uint256 Amount of WETH to convert to ETH, denominated in wei.✨ AI

Events

Approval(src: address, guy: address, wad: uint256)
Name Type Indexed Description
src address
guy address
wad uint256
Deposit(dst: address, wad: uint256)
Name Type Indexed Description
dst address
wad uint256
Transfer(src: address, dst: address, wad: uint256)
Name Type Indexed Description
src address
dst address
wad uint256
Withdrawal(src: address, wad: uint256)
Name Type Indexed Description
src address
wad uint256