ts-algochat
    Preparing search index...

    Function discoverEncryptionKey

    • Discover the encryption public key for an Algorand address.

      This searches the indexer for key announcement transactions from the address. A key announcement is a self-transfer (sender === receiver) with the X25519 public key in the note field.

      Parameters

      • indexer: IndexerClient

        The indexer client to use

      • address: string

        The Algorand address to find the key for

      • searchDepth: number = 100

        Maximum transactions to search (default: 100)

      Returns Promise<DiscoveredKey | undefined>

      DiscoveredKey if found, undefined otherwise