Watching an address for ASA transactions

Hey there,

Looking for a way to “watch” an address for transfers of an ASA, either incoming or outgoing.

Could be through an SDK, or via some unorthodox method like “fetching” each new block and parsing it for transactions, but would be incredibly valuable to me.

Cheers,

Hi!

I’d recommend checking out the new indexer functionality:
https://developer.algorand.org/docs/features/indexer/
https://developer.algorand.org/docs/features/indexer/#search-assets
https://developer.algorand.org/docs/reference/rest-apis/indexer/#get-v2assetsasset-idtransactions

Indexer requires that you have an archival node. Without an archival node, you could also, as you suggest, parse transactions in each block using the algod API: https://developer.algorand.org/docs/reference/rest-apis/algod/v2/#get-v2blocksround .

Each of the SDKs (Python, JS, Java, Go) have wrappers for both calls to the indexer and the algod API.