> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Send Bitcoin

> [card] Recommended: JavaScript SDK with React Hooks
>
> For new React apps, we recommend the JavaScript SDK with React Hooks (`@dynamic-labs-sdk/react-hooks`) instead of the legacy React SDK documented here. The JS SDK comes with many benefits such as a much smaller bundle size and other optimizations. Use the [React quickstart (JavaScript SDK)](https://docs.dynamic.xyz/docs/javascript/reference/react-quickstart.md) to get started.

In this example, we are going to send bitcoin.

```tsx theme={"system"}
      import { useDynamicContext } from '@dynamic-labs/sdk-react-core';
      import { isBitcoinWallet } from '@dynamic-labs/bitcoin';

      // the wallet object is the wallet you want to send from
      // you can access the available wallets via the `useUserWallets` hook
      // or get the primaryWallet via the `useDynamicContext` hook
      const SendBitcoinButton = ({ wallet }) => {

        const onSendBitcoin = async () => {
          if (!isBitcoinWallet(wallet)) {
            return;
          }

          // The `recipientAddress` is the address you are sending to, the `amount` is the amount of BTC in satoshis
          const transactionId = await wallet.sendBitcoin({
            recipientAddress: '<bitcoin payment address>',
            amount: BigInt(1),
          });

          console.log('transactionId', transactionId);
        };

        return <button onClick={onSendBitcoin}>Send Bitcoin</button>;
      };
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.