WETH9

Linea ERC-20 Token

0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f

Solidity v0.4.19+commit.c4cbbb05

Fungible token following the ERC-20 standard.

🤖
通过你的 AI 查询此合约
引用: 0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f
示例提示词: "Tell me the current state of linea/0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f"
还没有接入 AI?→ mcp.smarts.md
Linea 在 Smarts 上是仅文档链:源代码和 ABI 已索引,但当前不提供实时链上数据(状态、最新事件、管理员画像)。AI 代理仍可通过 MCP 调用 get_contract_info 和 get_contract_source。

概览

读取函数
6
写入函数
5
事件
4

读取函数

name() view

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

返回值

名称 类型 描述
string The token's name (for example Wrapped BNB) as a human-readable string.✨ AI
totalSupply() view

Returns the total number of WBNB tokens in existence.✨ AI

返回值

名称 类型 描述
uint256 The total token supply as a uint256, expressed in the token's smallest unit (wei, 10^-18 of a token).✨ AI
decimals() view

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

返回值

名称 类型 描述
uint8 The token's decimals as an unsigned 8-bit integer indicating display precision.✨ AI
balanceOf(address) view

Returns the WBNB token balance of the given address.✨ AI

参数

名称 类型 描述
address

返回值

名称 类型 描述
uint256 The token balance of the address as a uint256.✨ AI
symbol() view

Returns the token's short symbol string (e.g., "WBNB").✨ AI

返回值

名称 类型 描述
string The token symbol as a string.✨ AI
allowance(address, address) view

Returns the remaining token allowance the owner has granted to the spender.✨ AI

参数

名称 类型 描述
address
address

返回值

名称 类型 描述
uint256 Remaining number of tokens the spender is allowed to transfer from the owner.✨ AI

写入函数

approve(guy: address, wad: uint256) nonpayable

Allow guy to transfer up to wad tokens from the caller's balance.✨ AI

参数

名称 类型 描述
guy address Address granted permission to transfer tokens.✨ AI
wad uint256 Maximum token amount the spender may transfer (in token smallest unit).✨ AI

返回值

名称 类型 描述
bool True if the allowance was successfully set, otherwise false.✨ AI
transferFrom(src: address, dst: address, wad: uint256) nonpayable

Transfers wad tokens from src to dst using the caller's allowance and returns true on success.✨ AI

参数

名称 类型 描述
src address Address to deduct tokens from.✨ AI
dst address Address to receive tokens.✨ AI
wad uint256 Amount of tokens to transfer, expressed in token base units (wei).✨ AI

返回值

名称 类型 描述
bool True if the transfer succeeded, otherwise false.✨ AI
withdraw(wad: uint256) nonpayable

Unwrap specified amount of WBNB into native BNB and send it to your address.✨ AI

参数

名称 类型 描述
wad uint256 Amount of WBNB to withdraw (in wei).✨ AI
transfer(dst: address, wad: uint256) nonpayable

Transfers wad tokens from the caller to dst address.✨ AI

参数

名称 类型 描述
dst address Recipient address receiving the tokens.✨ AI
wad uint256 Amount of tokens to transfer, in the token's smallest unit.✨ AI

返回值

名称 类型 描述
bool Boolean true if the transfer succeeded, otherwise false.✨ AI
deposit() payable

Wrap BNB by sending native BNB to the contract and receive WBNB tokens credited to your balance.✨ AI

事件

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