Documentation Index
Fetch the complete documentation index at: https://www.dynamic.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
dynamicClient.bitcoin.sendBitcoin builds, signs, and broadcasts a Bitcoin transfer in a single call. Use it when you don’t need to inspect or modify the PSBT before broadcast.
Parameters
| Parameter | Type | Notes |
|---|---|---|
walletId | string | The id of a wallet whose chain === 'BTC'. |
recipientAddress | string | Destination address (mainnet or signet, depending on the wallet’s network). |
amount | string | Amount in satoshis, encoded as a string to preserve precision. 1 BTC = 100_000_000 sat. |
feePriority | 'high' | 'medium' | 'low' (optional) | Fee tier. Defaults are connector-specific. |
Example
React Native
Converting between BTC and satoshis
amount is always a satoshi string. Convert from a user-supplied BTC value before calling:
BigInt:
Errors
sendBitcoin rejects when:
- The wallet is not a Bitcoin wallet, or the
walletIddoesn’t match a wallet in the current session. - The user cancels the signing prompt in the WebView.
- The connected external wallet refuses the request (insufficient funds, network mismatch, etc.).
- The broadcast fails (the network rejects the transaction).