CCC Docs
    Preparing search index...

    Hierarchy

    • SignerBtc
      • SignerBtc
    Index

    Constructors

    Properties

    Methods

    • Gets the Bitcoin account associated with the signer.

      Returns Promise<string>

      A promise that resolves to a string representing the Bitcoin account.

    • Gets the Bitcoin public key associated with the signer.

      Returns Promise<`0x${string}`>

      A promise that resolves to a HexLike value representing the Bitcoin public key.

    • Ensure the BTC network is the same as CKB network.

      Returns Promise<void>

    • Returns Promise<string | undefined>

    • Register a listener to be called when this signer is replaced.

      Parameters

      • listener: () => void

      Returns () => void

      A function for unregister

    • Connects to the signer.

      Returns Promise<void>

      A promise that resolves when the connection is complete.

    • Check if the signer is connected.

      Returns Promise<boolean>

      A promise that resolves the connection status.

    • Signs a message and returns signature only. This method is not implemented and should be overridden by subclasses.

      Parameters

      • message: BytesLike

      Returns Promise<string>

      A promise that resolves to the signature as a string.

      Will throw an error if not implemented.

    • Signs a PSBT using UTXO Global wallet.

      Parameters

      • _psbtHex: BytesLike
      • Optional_options: SignPsbtOptionsLike

      Returns Promise<`0x${string}`>

      A promise that resolves to the signed PSBT as a Hex string

    • Broadcasts a signed PSBT to the Bitcoin network.

      Parameters

      • _psbtHex: BytesLike
      • Optional_options: SignPsbtOptionsLike

      Returns Promise<`0x${string}`>

      A promise that resolves to the transaction ID as a Hex string

      Implement PSBT broadcasting with UTXO Global