WETH
Ethereum ERC-20 Token0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Solidity v0.4.19+commit.c4cbbb05
Fungible token following the ERC-20 standard.
Admin & Risk
Who can change the rules?
No admin risk controls detected from the verified ABI.
Overview
Read Functions
Block #25,169,325 · just nowReturns the token name.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | string | The token name as a string, for example Wrapped Ether.✨ AI |
Returns the total number of WETH tokens in existence.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The total supply of WETH tokens as a uint256, denominated in the token's smallest unit (wei).✨ AI |
Return the number of decimal places used to display token balances.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 | The token's decimals (uint8) used to format and display balances.✨ AI |
Returns the token balance of a given address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The token balance (uint256) of the specified address, denominated in the token's base unit.✨ AI |
Get the token's symbol for display in wallets and interfaces.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | string | The token symbol as a string (e.g., "WETH").✨ AI |
Return the remaining WETH token allowance that a spender can transfer from an owner.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| — | address | |
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Remaining number of tokens the spender is allowed to transfer from the owner.✨ AI |
Write Functions
Allow an address to spend up to a specified amount of your tokens.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| guy | address | Address approved to spend tokens.✨ AI |
| wad | uint256 | Maximum token amount the approved address may spend.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the approval succeeded, otherwise false.✨ AI |
Transfers wad tokens from src to dst using the caller's allowance.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| 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 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the transfer succeeded.✨ AI |
Withdraw the specified amount of WETH and receive the corresponding ETH to the caller.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| wad | uint256 | Amount of WETH to unwrap, denominated in wei.✨ AI |
Transfer wad tokens from the caller to the specified destination address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| dst | address | Recipient address that receives the tokens.✨ AI |
| wad | uint256 | Amount of tokens (in wei) to transfer.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the transfer succeeded, otherwise false.✨ AI |
Accepts ETH and credits the caller with an equivalent amount of WETH tokens.✨ AI
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| src | address | ✓ | |
| guy | address | ✓ | |
| wad | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| src | address | ✓ | |
| dst | address | ✓ | |
| wad | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| dst | address | ✓ | |
| wad | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| src | address | ✓ | |
| wad | uint256 |