WBTC

Ethereum ERC-20 Token

0x2260fac5e5542a773aa44fbcfedf7c193bc2c599

Solidity v0.4.24+commit.e67f0147

Fungible token following the ERC-20 standard.

🤖
透過你的 AI 查詢此合約
參考: wbtc-eth 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
範例提示詞: "Tell me the current state of wbtc-eth"
還沒有接入 AI?→ mcp.smarts.md

管理與風險

誰能修改規則?

Block #25,177,571

Detected mintable, pausable, and ownable controls from the verified ABI.

Mintable Pausable Ownable

當前控制

Paused
false
Owner
0xca06411bd7a7296d7dbdd0050dfc846e95febeb7 ↗ Etherscan → smarts

概覽

讀取函式
10
寫入函式
14
事件
9

讀取函式

Block #25,177,571 · 31s ago
mintingFinished() view → false

Returns whether token minting is permanently disabled.✨ AI

回傳值

名稱 類型 描述
bool True if minting is finished and no further tokens can be minted; otherwise false.✨ AI
name() view → Wrapped BTC

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

回傳值

名稱 類型 描述
string The token's name as a string, for example "WBTC".✨ AI
totalSupply() view → 116,790.18 WBTC

Returns the total number of WBTC tokens in circulation.✨ AI

開發者: Total number of tokens in existence

回傳值

名稱 類型 描述
uint256 Total supply of WBTC as a uint256, denominated in the token's smallest unit (satoshis).✨ AI
decimals() view → 8

Returns the number of decimals used by the token.✨ AI

回傳值

名稱 類型 描述
uint8 The number of decimal places used by the token as a uint8 (commonly 8 for WBTC).✨ AI
paused() view → false

Indicates whether the token is currently paused.✨ AI

回傳值

名稱 類型 描述
bool True if contract is paused and token transfers are disabled; false otherwise.✨ AI
balanceOf(_owner: address) view

Returns the WBTC token balance of the specified address.✨ AI

開發者: Gets the balance of the specified address.

參數

名稱 類型 描述
_owner address The address to query the the balance of.

回傳值

名稱 類型 描述
uint256 An uint256 representing the amount owned by the passed address.
owner() view → 0xca06411bd7a7296d7dbdd0050dfc846e95febeb7

Returns the address of the contract owner.✨ AI

回傳值

名稱 類型 描述
address The owner address with permissions to perform owner-only administrative actions.✨ AI
symbol() view → WBTC

Return the token's short symbol shown in wallets and exchanges.✨ AI

回傳值

名稱 類型 描述
string The token symbol string (e.g., WBTC).✨ AI
allowance(_owner: address, _spender: address) view

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

開發者: Function to check the amount of tokens that an owner allowed to a spender.

參數

名稱 類型 描述
_owner address address The address which owns the funds.
_spender address address The address which will spend the funds.

回傳值

名稱 類型 描述
uint256 A uint256 specifying the amount of tokens still available for the spender.
pendingOwner() view → 0x0000000000000000000000000000000000000000

Returns the address of the pending owner who can accept contract ownership.✨ AI

回傳值

名稱 類型 描述
address The address currently set as the pending owner eligible to accept ownership.✨ AI

寫入函式

approve(_spender: address, _value: uint256) nonpayable

Approve a spender to transfer up to a specified number of your tokens.✨ AI

開發者: Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards: https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729

參數

名稱 類型 描述
_spender address The address which will spend the funds.
_value uint256 The amount of tokens to be spent.

回傳值

名稱 類型 描述
bool True if the approval was successful, otherwise false.✨ AI
reclaimToken(_token: address) nonpayable

Allows the contract owner to reclaim any ERC-20 tokens held by this contract.✨ AI

開發者: Reclaim all ERC20Basic compatible tokens

參數

名稱 類型 描述
_token address ERC20Basic The address of the token contract
transferFrom(_from: address, _to: address, _value: uint256) nonpayable

Transfer tokens from one address to another using an allowance and return true on success.✨ AI

開發者: Transfer tokens from one address to another

參數

名稱 類型 描述
_from address address The address which you want to send tokens from
_to address address The address which you want to transfer to
_value uint256 uint256 the amount of tokens to be transferred

回傳值

名稱 類型 描述
bool true if the transfer was successful.✨ AI
unpause() nonpayable

Unpause the WBTC contract to re-enable transfers and other paused token functions.✨ AI

開發者: called by the owner to unpause, returns to normal state
mint(_to: address, _amount: uint256) nonpayable

Mint tokens to a recipient, increasing their balance and the total supply.✨ AI

開發者: Function to mint tokens

參數

名稱 類型 描述
_to address The address that will receive the minted tokens.
_amount uint256 The amount of tokens to mint.

回傳值

名稱 類型 描述
bool A boolean that indicates if the operation was successful.
burn(value: uint256) nonpayable

Burns the specified amount of tokens from the caller's balance and reduces the total supply.✨ AI

開發者: Burns a specific amount of tokens.

參數

名稱 類型 描述
value uint256 Amount of tokens to burn, expressed in the token's smallest unit.✨ AI
claimOwnership() nonpayable

Complete the ownership transfer by assigning the pending owner as the current owner.✨ AI

開發者: Allows the pendingOwner address to finalize the transfer.
decreaseApproval(_spender: address, _subtractedValue: uint256) nonpayable

Decrease the allowance granted to _spender by _subtractedValue, not going below zero.✨ AI

開發者: Decrease the amount of tokens that an owner allowed to a spender. approve should be called when allowed[_spender] == 0. To decrement allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol

參數

名稱 類型 描述
_spender address The address which will spend the funds.
_subtractedValue uint256 The amount of tokens to decrease the allowance by.

回傳值

名稱 類型 描述
success bool true if the allowance was decreased successfully and an Approval event was emitted.✨ AI
renounceOwnership() nonpayable

Renouncing to ownership will leave the contract without an owner. It will not be possible to call the functions with the `onlyOwner` modifier anymore.

開發者: Allows the current owner to relinquish control of the contract.
finishMinting() nonpayable

Permanently disable further token minting.✨ AI

開發者: Function to stop minting new tokens.

回傳值

名稱 類型 描述
bool True if the operation was successful.
pause() nonpayable

Pauses all token transfers and state-changing functions in the WBTC contract.✨ AI

開發者: called by the owner to pause, triggers stopped state
transfer(_to: address, _value: uint256) nonpayable

Transfer tokens from the caller's account to the specified recipient address.✨ AI

開發者: Transfer token for a specified address

參數

名稱 類型 描述
_to address The address to transfer to.
_value uint256 The amount to be transferred.

回傳值

名稱 類型 描述
bool True if the transfer succeeded and false otherwise.✨ AI
increaseApproval(_spender: address, _addedValue: uint256) nonpayable

Increase the caller's allowance for a spender by a specified amount.✨ AI

開發者: Increase the amount of tokens that an owner allowed to a spender. approve should be called when allowed[_spender] == 0. To increment allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol

參數

名稱 類型 描述
_spender address The address which will spend the funds.
_addedValue uint256 The amount of tokens to increase the allowance by.

回傳值

名稱 類型 描述
success bool true if the allowance was successfully increased, otherwise false.✨ AI
transferOwnership(newOwner: address) nonpayable

Transfer ownership of the contract to the specified newOwner address, callable only by the current owner.✨ AI

開發者: Allows the current owner to transfer control of the contract to a newOwner.

參數

名稱 類型 描述
newOwner address Address that will become the contract owner and receive administrative rights.✨ AI

事件

Pause()
Unpause()
Burn(burner: address, value: uint256)
名稱 類型 已索引 描述
burner address
value uint256
Mint(to: address, amount: uint256)
名稱 類型 已索引 描述
to address
amount uint256
MintFinished()
OwnershipRenounced(previousOwner: address)
名稱 類型 已索引 描述
previousOwner address
OwnershipTransferred(previousOwner: address, newOwner: address)
名稱 類型 已索引 描述
previousOwner address
newOwner address
Approval(owner: address, spender: address, value: uint256)
名稱 類型 已索引 描述
owner address
spender address
value uint256
Transfer(from: address, to: address, value: uint256)
名稱 類型 已索引 描述
from address
to address
value uint256