The indexer client to use
The Algorand address to find the key for
Function to check if a note is an AlgoChat message
Function to decode envelope and extract public key
OptionaloptionsOrDepth: number | DiscoverKeyOptionsDiscovery options, or a numeric search depth for backward compatibility
DiscoveredKey if found, undefined otherwise
Discover encryption key from a chat message transaction.
Extracts the sender's public key from the envelope header of any AlgoChat message they've sent.
When the indexer supports paginated search, this iterates through the full transaction history page by page. Otherwise it falls back to a single batch.