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.
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', });
This smallest unit allows for transactions involving very small amounts of bitcoin,
facilitating microtransactions and improving the granularity of payments in the Bitcoin network.
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.