CCC Docs
    Preparing search index...

    Class representing a Bitcoin signer that extends SignerBtc

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    provider: BtcProvider

    The provider instance.

    Accessors

    • get supportsSingleCallSignAndBroadcast(): boolean

      Whether the wallet supports a single call to sign + broadcast (combined flow). Default false; override in implementations like Xverse/JoyID.

      Returns boolean

    Methods

    • Returns Promise<
          {
              address: string;
              publicKey: string;
              purpose: AddressPurpose;
              addressType: AddressType;
          },
      >

    • Signs a PSBT using Xverse wallet.

      Parameters

      • psbtHex: string

        The hex string of PSBT to sign

      • Optionaloptions: SignPsbtOptions

        Options for signing the PSBT

      Returns Promise<string>

      A promise that resolves to the signed PSBT hex string

      Xverse accepts:

      • psbt: A string representing the PSBT to sign, encoded in base64
      • signInputs: A Record<string, number[]> where:
        • keys are the addresses to use for signing
        • values are the indexes of the inputs to sign with each address

      Xverse returns:

      • psbt: The base64 encoded signed PSBT