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
Maximum transactions to search (default: 200)
DiscoveredKey if found, undefined otherwise
Discover encryption key from a chat message transaction.
This extracts the sender's public key from the envelope header of any AlgoChat message they've sent.