WETH9
World Chain ERC-20 Token0x4200000000000000000000000000000000000006
Solidity v0.5.17+commit.d19bba13
Fungible token following the ERC-20 standard.
概覽
讀取函式
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 |
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 |
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 |
Return the token's name as a human-readable string.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token name string, e.g. "Wrapped Ether".✨ AI |
Return the token's short symbol used to identify this token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token symbol string (for example, "WETH").✨ AI |
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 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 ETH and mint an equal amount of WETH credited to the sender's balance.✨ AI
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 |
Transfer wad tokens from src to dst using the caller's allowance; revert on insufficient balance or allowance.✨ 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 |
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 |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| src | address | ✓ | |
| guy | address | ✓ | |
| wad | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| dst | address | ✓ | |
| wad | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| src | address | ✓ | |
| dst | address | ✓ | |
| wad | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| src | address | ✓ | |
| wad | uint256 |