Send BTC Transaction

You can request to send an amount of bitcoin to one or more recipients using sendBtcTransaction method
import { sendBtcTransaction } from 'sats-connect'
const sendBtcOptions = {
payload: {
network: {
type: "Testnet",
},
recipients: [
{
address: '2NBC9AJ9ttmn1anzL2HvvVML8NWzCfeXFq4',
amountSats: 1500,
},
{
address: '2NFhRJfbBW8dhswyupAJWSehMz6hN5LjHzR',
amountSats: 1500,
},
],
senderAddress: 'paymentAddress',
},
onFinish: (response) => {
alert(response);
},
onCancel: () => alert("Canceled"),
};
await sendBtcTransaction(sendBtcOptions);