Skip to main content
We covered how to access wallets in the Accessing Wallets section. Bitcoin wallets have different capabilities and requirements than EVM wallets (for example, multiple address types like payment and ordinal addresses), so we cover Bitcoin-specific behavior here. This is because Bitcoin wallets have different capabilities and requirements. For example, Bitcoin wallets can have multiple addresses associated with them, like payment and ordinal addresses.

Checking if a wallet is a Bitcoin wallet

  import { isBitcoinWallet } from '@dynamic-labs/bitcoin';

  if (!isBitcoinWallet(wallet)) {
    throw new Error('This wallet is not a Bitcoin wallet');
  }

  const result = await wallet.sendBitcoin({
    amount: 100000000n,
    recipientAddress: 'SOME-ADDRESS',
  });

What is a satoshi?

This smallest unit allows for transactions involving very small amounts of bitcoin, facilitating microtransactions and improving the granularity of payments in the Bitcoin network.
1 Bitcoin = 100,000,000 Satoshis

What is a PSBT?

A partially signed bitcoin transaction (PSBT) is a standard for transactions that have not fully signed. This allows different participants with different keys/signers to sign a transaction without revealing their private keys to others. Multi-sig wallets utilize these. This allows for a multi-step transaction process which is both safer and more efficient.

Examples

We’ve included a few examples of how to use the Bitcoin wallet connector in this section: