Sending bitcoin
Sign and broadcast Bitcoin transactions
This method allows apps to prompt users to send BTC with prefilled values (e.g. recipient address, amount). The wallet returns a success response to the app that includes the
txid
of the broadcasted transaction.const resp = await window.btc?.request('sendTransfer', {
address: 'tb1qkzvk9hr7uvas23hspvsgqfvyc8h4nngeqjqtnj',
amount: '10000'
});
console.log(resp.result.txid)




Last modified 25d ago