isBitcoinWallet
helper method to check if a wallet is a Bitcoin wallet. That way, TypeScript will know which methods are available to you.
Method | Description |
---|---|
sendRawTransaction(rawTransactionHex: string): Promise<string | undefined> | This method submits a raw transaction to the bitcoin blockchain and returns the transaction ID as the response |
sendBitcoin(transaction: BitcoinTransaction): Promise<string | undefined> | A method to send an amount of satoshis to a recipient bitcoin address |
signMessageWithAddress(messageToSign: string, addressType: WalletAddressType): Promise<string\ | undefined> | Signs a message with a specific bitcoin address type (ordinals or payment) |
signPsbt(request: BitcoinSignPsbtRequest): Promise<BitcoinSignPsbtResponse | undefined> | Signs a PSBT and returns an object with the signed PSBT |
signPsbts(request: BitcoinSignPsbtRequest[]): Promise<string[] | undefined> | Signs a list of PSBTs and returns an array of signed PSBTs in base64 |