Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
transaction.recipientAddress | string | The recipient’s Bitcoin address |
transaction.amount | bigint | The amount to send in satoshis |
walletAccount | BitcoinWalletAccount | The wallet account to send from |
client | DynamicClient (optional) | The Dynamic client instance. Only required when using multiple clients. |
Returns
Promise<{ transactionId: string }> - A promise that resolves to an object containing the transaction ID.
Errors
| Error | Description |
|---|---|
NotBitcoinProviderError | Thrown if the wallet account’s provider is not a Bitcoin provider |
MethodNotImplementedError | Thrown if the wallet provider does not implement the sendBitcoin method |
Related functions
- signPsbt - Sign a PSBT
- sendRawTransaction - Send a raw Bitcoin transaction