CCC Docs
    Preparing search index...

    Class representing a Bitcoin signer that extends SignerBtc

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    provider: UniSatA.Provider

    The provider instance.

    Methods

    • Returns Promise<undefined | string>

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

      Returns Promise<void>

    • Gets the Bitcoin account address.

      Returns Promise<string>

      A promise that resolves to the Bitcoin account address.

    • Gets the Bitcoin public key.

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

      A promise that resolves to the Bitcoin public key.

    • Connects to the provider by requesting accounts.

      Returns Promise<void>

      A promise that resolves when the connection is established.

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

      Parameters

      • listener: () => void

      Returns () => void

      A function for unregister

    • Checks if the signer is connected.

      Returns Promise<boolean>

      A promise that resolves to true if connected, false otherwise.

    • Signs a raw message with the Bitcoin account.

      Parameters

      Returns Promise<string>

      A promise that resolves to the signed message.