WBTC
Optimism ERC-20 Token0x68f180fcce6836688e9084f035309e29bf0a2095
Solidity v0.7.6
Fungible token following the ERC-20 standard.
管理與風險
誰能修改規則?
Detected mintable controls from the verified ABI.
概覽
讀取函式
Block #152,084,147 · just nowReturns the remaining number of tokens that spender is allowed to transfer from owner.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Address that owns the tokens.✨ AI |
| spender | address | Address authorized to spend the owner's tokens.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Remaining allowance expressed in the token's smallest units (uint256) that spender may transfer from owner.✨ AI |
Returns the token balance for the specified account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | Address whose token balance will be returned.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The account's token balance as a uint256.✨ AI |
Returns the number of decimals used to display token amounts.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | The token's decimal precision: the number of decimal places (uint8).✨ AI |
Returns the address of the corresponding L1 token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The L1 token contract address that corresponds to this token.✨ AI |
Returns the address of the token's L2 bridge.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the Layer-2 bridge contract associated with this token.✨ AI |
Returns the token's name as a human-readable string.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token name string (e.g., "Tether USD").✨ AI |
Report whether the contract implements the interface with the given ERC-165 id.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _interfaceId | bytes4 | The 4-byte ERC-165 interface identifier to check.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the contract claims to implement the interface id, false otherwise.✨ AI |
Returns the token's symbol used in wallets and user interfaces.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token's short symbol, e.g. USDT, suitable for display in wallets and user interfaces.✨ AI |
Returns the total number of tokens in existence.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total token supply in the token's smallest unit (uint256).✨ AI |
寫入函式
Approve a spender to transfer up to a specified amount of your USDT tokens.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Address allowed to spend tokens from the caller's balance.✨ AI |
| amount | uint256 | Maximum token amount the spender is permitted to transfer (in smallest unit).✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the approval was successful; otherwise false.✨ AI |
Burns a specified token amount from the given address, decreasing the caller's token balance and total supply.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _from | address | Address whose tokens will be burned.✨ AI |
| _amount | uint256 | Amount of tokens to burn, specified in the token's smallest unit.✨ AI |
Decrease the caller's ERC-20 allowance for a spender by subtractedValue.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Address whose allowance for the caller will be decreased.✨ AI |
| subtractedValue | uint256 | Amount to subtract from the current allowance (in token smallest units).✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the allowance was successfully decreased.✨ AI |
Increase the allowance granted to a spender by the caller.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Address that will be allowed to spend the caller's tokens.✨ AI |
| addedValue | uint256 | Amount of tokens to add to the spender's current allowance.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the allowance was successfully increased, otherwise false.✨ AI |
Mint new USDT tokens and assign them to the specified address, increasing total supply.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _to | address | Address that will receive the newly minted tokens.✨ AI |
| _amount | uint256 | Number of tokens to mint, expressed in the token's smallest unit.✨ AI |
Transfer tokens from the caller's account to the recipient.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| recipient | address | Address to receive the tokens.✨ AI |
| amount | uint256 | Amount of tokens to transfer, in the token's smallest unit.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded; otherwise false.✨ AI |
Transfer tokens from sender to recipient using the caller's approved allowance.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| sender | address | Address to withdraw tokens from.✨ AI |
| recipient | address | Address to receive the tokens.✨ AI |
| amount | uint256 | Number of tokens to transfer, specified in the token's smallest unit.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded.✨ AI |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| _account | address | ✓ | |
| _amount | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| _account | address | ✓ | |
| _amount | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |