sendBitcoin

Send BTC

Method

async function sendBitcoin(
    toAddress: string, 
    satoshis: number, 
    options?: { feeRate: number }
): string

Params

  • toAddress — required string the address to send

  • satoshis — required number the satoshis to send

  • options — optional

    • feeRate — required number the network fee rate

Response

txid — string

Example

Demo

Last updated

Was this helpful?