Documentation
    Preparing search index...

    Watch-only signer implementation

    This signer provides read-only access to wallet information without the ability to sign transactions. It's useful for viewing wallet balances, transaction history, and other non-signing operations.

    Note: This signer cannot actually sign transactions and will return empty signatures or throw errors when signing is attempted.

    Hierarchy

    • Signer
      • WatchSigner
    Index

    Constructors

    • Creates a new watch-only signer

      Parameters

      • address: string

        The wallet address to watch

      Returns WatchSigner

    Methods

    • Gets the key scheme for this signer

      Returns any

      Key scheme string (ed25519 for compatibility)

    • Gets the public key information for this signer

      Returns a mock public key object that provides the wallet address but cannot be used for actual cryptographic operations.

      Returns any

      Mock public key object

    • Signs transaction bytes (not implemented for watch-only mode)

      This method is required by the Signer interface but cannot actually sign transactions in watch-only mode.

      Parameters

      • bytes: Uint8Array

        Transaction bytes to sign

      Returns Promise<Uint8Array<ArrayBufferLike>>

      Promise - Empty signature (not valid)

    • Signs and executes a transaction (not implemented for watch-only mode)

      This method is required by the Signer interface but cannot actually sign and execute transactions in watch-only mode.

      Parameters

      • options: SignAndExecuteOptions

        Sign and execute options

      Returns Promise<any>

      Promise - Empty result (not a real transaction result)

    • Signs provided personal message by calling signWithIntent() with a PersonalMessage provided as intent scope

      Parameters

      • bytes: Uint8Array

      Returns Promise<{ bytes: string; signature: string }>

    • Signs provided transaction by calling signWithIntent() with a TransactionData provided as intent scope

      Parameters

      • bytes: Uint8Array

      Returns Promise<SignatureWithBytes>

    • Sign messages with a specific intent. By combining the message bytes with the intent before hashing and signing, it ensures that a signed message is tied to a specific purpose and domain separator is provided

      Parameters

      • bytes: Uint8Array
      • intent: IntentScope

      Returns Promise<SignatureWithBytes>

    • Returns string