WBTC
Ethereum ERC-20 Token0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
Solidity v0.4.24+commit.e67f0147
Fungible token following the ERC-20 standard.
Admin & Risk
Who can change the rules?
Detected mintable, pausable, and ownable controls from the verified ABI.
Current controls
- Paused
- false
- Owner
- 0xca06411bd7a7296d7dbdd0050dfc846e95febeb7 ↗ Etherscan → smarts
Overview
Read Functions
Block #25,169,818 · just nowReturns 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 |
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 |
Returns the total number of WBTC tokens in circulation.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Total supply of WBTC as a uint256, denominated in the token's smallest unit (satoshis).✨ AI |
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 |
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 |
Returns the WBTC token balance of the specified address.✨ AI
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. |
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 |
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 |
Returns the remaining token allowance an owner granted to a spender.✨ AI
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. |
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 a spender to transfer up to a specified number of your tokens.✨ AI
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 |
Allows the contract owner to reclaim any ERC-20 tokens held by this contract.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _token | address | ERC20Basic The address of the token contract |
Transfer tokens from one address to another using an allowance and return true on success.✨ AI
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 the WBTC contract to re-enable transfers and other paused token functions.✨ AI
Mint tokens to a recipient, increasing their balance and the total supply.✨ AI
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. |
Burns the specified amount of tokens from the caller's balance and reduces the total supply.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| value | uint256 | Amount of tokens to burn, expressed in the token's smallest unit.✨ AI |
Complete the ownership transfer by assigning the pending owner as the current owner.✨ AI
Decrease the allowance granted to _spender by _subtractedValue, not going below zero.✨ AI
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 |
Renouncing to ownership will leave the contract without an owner. It will not be possible to call the functions with the `onlyOwner` modifier anymore.
Permanently disable further token minting.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the operation was successful. |
Pauses all token transfers and state-changing functions in the WBTC contract.✨ AI
Transfer tokens from the caller's account to the specified recipient address.✨ AI
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 |
Increase the caller's allowance for a spender by a specified amount.✨ AI
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 |
Transfer ownership of the contract to the specified newOwner address, callable only by the current owner.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address | Address that will become the contract owner and receive administrative rights.✨ AI |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| burner | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| to | address | ✓ | |
| amount | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousOwner | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |