CrowdTrendz DEX Utility- Token Filter
AI-generatedSummary
Finds a specified token in each input wallet’s balances and returns the matching token record. For ADA or lovelace, returns a synthesized ADA asset record using the wallet’s ADA balance.
Inputs
- Target Token ID (required) — Token ID to find. Use
lovelaceoradafor ADA; otherwise, the operation matches this value exactly against each token’sasset.token_id. - Input wallet data (required) — Each incoming item must contain
balances.tokensas an array. The ADA special case also readsbalances.ada. The Common Token IDs notice provides examples, including IDs for IAG and STRIKE.
Output shape
One output item per input item.
A match returns the found token record unchanged. ADA returns an asset object with token ID
lovelace, tickerADA, and a balance frombalances.adaor0if absent. Invalid wallet data or an unmatched token returns an error object with a message; thrown errors stop execution unless Continue On Fail is enabled.
Examples
Example 1: Find IAG by token ID
Set Target Token ID to the IAG ID shown in the Common Token IDs notice and provide wallet data containing balances.tokens.
