ts-algochat
    Preparing search index...

    Function discoverEncryptionKey

    • Discover the encryption public key for an Algorand address.

      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.

      When the indexer supports paginated search, this iterates through the full transaction history page by page. Otherwise it falls back to a single batch.

      Parameters

      • indexer: IndexerClient

        The indexer client to use

      • address: string

        The Algorand address to find the key for

      • OptionaloptionsOrDepth: number | DiscoverKeyOptions

        Discovery options, or a numeric search depth for backward compatibility

      Returns Promise<DiscoveredKey | undefined>

      DiscoveredKey if found, undefined otherwise