WBTC

Ethereum ERC-20 Token

0x2260fac5e5542a773aa44fbcfedf7c193bc2c599

Solidity v0.4.24+commit.e67f0147

Fungible token following the ERC-20 standard.

🤖
Query this contract from your AI
Reference: wbtc-eth 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
Sample prompt: “Tell me the current state of wbtc-eth”
No AI wired up yet? → mcp.smarts.md

Admin & Risk

Who can change the rules?

Block #25,169,818

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

Mintable Pausable Ownable

Current controls

Paused
false
Owner
0xca06411bd7a7296d7dbdd0050dfc846e95febeb7 ↗ Etherscan → smarts

Overview

Read Functions
10
Write Functions
14
Events
9

Read Functions

Block #25,169,818 · just now
mintingFinished() view → false

Returns whether token minting is permanently disabled.✨ AI

Returns

Name Type Description
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

Returns

Name Type Description
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

dev: Total number of tokens in existence

Returns

Name Type Description
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

Returns

Name Type Description
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

Returns

Name Type Description
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

dev: Gets the balance of the specified address.

Parameters

Name Type Description
_owner address The address to query the the balance of.

Returns

Name Type Description
uint256 An uint256 representing the amount owned by the passed address.
owner() view → 0xca06411bd7a7296d7dbdd0050dfc846e95febeb7

Returns the address of the contract owner.✨ AI

Returns

Name Type Description
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

Returns

Name Type Description
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

dev: Function to check the amount of tokens that an owner allowed to a spender.

Parameters

Name Type Description
_owner address address The address which owns the funds.
_spender address address The address which will spend the funds.

Returns

Name Type Description
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

Returns

Name Type Description
address The address currently set as the pending owner eligible to accept ownership.✨ AI

Write Functions

approve(_spender: address, _value: uint256) nonpayable

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

dev: 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

Parameters

Name Type Description
_spender address The address which will spend the funds.
_value uint256 The amount of tokens to be spent.

Returns

Name Type Description
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

dev: Reclaim all ERC20Basic compatible tokens

Parameters

Name Type Description
_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

dev: Transfer tokens from one address to another

Parameters

Name Type Description
_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

Returns

Name Type Description
bool true if the transfer was successful.✨ AI
unpause() nonpayable

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

dev: 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

dev: Function to mint tokens

Parameters

Name Type Description
_to address The address that will receive the minted tokens.
_amount uint256 The amount of tokens to mint.

Returns

Name Type Description
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

dev: Burns a specific amount of tokens.

Parameters

Name Type Description
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

dev: 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

dev: 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

Parameters

Name Type Description
_spender address The address which will spend the funds.
_subtractedValue uint256 The amount of tokens to decrease the allowance by.

Returns

Name Type Description
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.

dev: Allows the current owner to relinquish control of the contract.
finishMinting() nonpayable

Permanently disable further token minting.✨ AI

dev: Function to stop minting new tokens.

Returns

Name Type Description
bool True if the operation was successful.
pause() nonpayable

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

dev: 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

dev: Transfer token for a specified address

Parameters

Name Type Description
_to address The address to transfer to.
_value uint256 The amount to be transferred.

Returns

Name Type Description
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

dev: 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

Parameters

Name Type Description
_spender address The address which will spend the funds.
_addedValue uint256 The amount of tokens to increase the allowance by.

Returns

Name Type Description
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

dev: Allows the current owner to transfer control of the contract to a newOwner.

Parameters

Name Type Description
newOwner address Address that will become the contract owner and receive administrative rights.✨ AI

Events

Pause()
Unpause()
Burn(burner: address, value: uint256)
Name Type Indexed Description
burner address
value uint256
Mint(to: address, amount: uint256)
Name Type Indexed Description
to address
amount uint256
MintFinished()
OwnershipRenounced(previousOwner: address)
Name Type Indexed Description
previousOwner address
OwnershipTransferred(previousOwner: address, newOwner: address)
Name Type Indexed Description
previousOwner address
newOwner address
Approval(owner: address, spender: address, value: uint256)
Name Type Indexed Description
owner address
spender address
value uint256
Transfer(from: address, to: address, value: uint256)
Name Type Indexed Description
from address
to address
value uint256