What you can do
| hold-or-send-wbtc | Send WBTC on Ethereum or another listed chain | call transfer(to, amount) on the token address for that chain. Amount in base units (8 decimals). |
| use-wbtc-in-protocol | Deposit WBTC into a DeFi protocol | approve(protocol, amount) on the WBTC token, then call the protocol's deposit function. Check the protocol's own registry entry for the function. |
| mint-or-redeem | Convert BTC to WBTC or back | not possible from a contract call. Minting and redemption go through WBTC merchants and custody, as described on the WBTC docs site. |
WBTC is custodial. Every token depends on BTC held by WBTC custodians and on the WBTC DAO and merchant set. A custody failure would break the peg.
Token decimals are 8, not 18. Using 18-decimal math with WBTC amounts gives wrong results.
Look-alike tokens exist on Ethereum (for example, a 'Wrapped BTC from PulseChain' token). Use only the addresses listed on the WBTC docs page.
Minting and burning are controlled by WBTC custody and merchants. An agent cannot mint or redeem WBTC through the token contract.
Contracts
Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).WBTC (ERC-20, 8 decimals)token on ethereum0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599
read balanceOf(address)
WBTC balance of an address in base units (8 decimals, so 100000000 is 1 WBTC).
read allowance(address,address)
Remaining amount a spender may pull from an owner: (owner, spender).
read totalSupply()
Total WBTC in circulation, in base units (8 decimals).
read decimals()
Returns 8. Use it when converting between whole WBTC and base units.
write approve(address,uint256)
Approve a spender to pull WBTC: (spender, amount in base units). Needed before any contract pulls WBTC from your wallet, for example a DEX or lending pool.
write transfer(address,uint256)
Send WBTC to an address: (to, amount in base units). Reverts if the balance is too low.
write transferFrom(address,address,uint256)
Move WBTC from an owner to a recipient using an allowance: (from, to, amount in base units). The caller must have been approved by from.
WBTC (BEP-20, BNB Chain)token on bnb0x39665e85a68a4d7328b8799135E2ff301a0Ca86f
WBTC (ERC-20, Kava)token on kava0xb5c4423a65B953905949548276654C96fcaE6992
WBTC (SPL token, Solana)token on solana5XZw2LKTyrfvfiskJ78AMpackRjPcyCif1WhUsPDuVqQ
WBTC (TRC-20, TRON)token on tronTYhWwKpw43ENFWBTGpzLHn3882f2au7SMi