WETH

Base 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 base/0x4200000000000000000000000000000000000006"
No AI wired up yet? → mcp.smarts.md · Browse chains

Admin & Risk

Who can change the rules?

No admin risk controls detected from the verified ABI.

Overview

Read Functions
6
Write Functions
5
Events
4

Read Functions

Block #47,153,375 · just now
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 → 18

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 → Wrapped Ether

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 → WETH

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 → 289,077.46 WETH

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 an address to spend up to a specified amount of tokens on your behalf.✨ AI

Parameters

Name Type Description
guy address Address that will be allowed to spend the caller's tokens.✨ AI
wad uint256 Amount of tokens allowed (in the token's smallest unit, e.g., wei).✨ AI

Returns

Name Type Description
bool True if the approval succeeded.✨ AI
deposit() payable

Deposit ETH and receive the same amount of WETH tokens credited to your account.✨ AI

transfer(dst: address, wad: uint256) nonpayable

Transfer wad tokens from the caller to dst and return true on success.✨ AI

Parameters

Name Type Description
dst address Recipient address to receive the tokens.✨ AI
wad uint256 Amount of tokens to transfer, in wei units.✨ AI

Returns

Name Type Description
bool True if the transfer succeeded.✨ AI
transferFrom(src: address, dst: address, wad: uint256) nonpayable

Transfer wad tokens from src to dst, using the caller's allowance when applicable.✨ AI

dev: Reverts if src has insufficient balance. If caller != src, requires allowance >= wad; allowance is not reduced when equal to max uint256.✨ AI

Parameters

Name Type Description
src address Address to debit tokens from (source).✨ AI
dst address Address to credit tokens to (destination).✨ AI
wad uint256 Amount of tokens to transfer, in wei (smallest unit).✨ AI

Returns

Name Type Description
bool True on success.✨ AI
withdraw(wad: uint256) nonpayable

Withdraws specified WETH amount and sends equivalent ETH to the caller.✨ AI

Parameters

Name Type Description
wad uint256 Amount of WETH to convert to ETH, specified 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