Recipes
Rebuild history for your UI
List ledger rows as source of truth; enrich with tokens; optionally merge Cloud activity.
Overview
Product history should come from your ledger list, not only from the chain indexer. Rebuild screens by listing ledger rows, enriching with token metadata, and optionally merging Cloud activity for discovery of transactions you never recorded.
Primary feed: ledger list
- Call
GET /v1/transactionswithchainIdand/orstatusas the UI needs (e.g. onlyconfirmedfor a completed history tab). - Cap is 200 per request—filter tightly or load per chain. Sort is newest first.
- For each row, show
kind, addresses,value,status, and link out ontxHashwhen present.
Enrich with tokens
Cache token list by chainId. Match tokenAddress (or native) to symbol, decimals, logo, and verified for badges.
Optional: merge Cloud activity
Activity shows indexer history for an address. Use it to surface transfers that never went through your prepare/broadcast path; offer “import” by creating a ledger row at confirmed with the known hash if you want them in the product feed.
Detail view
Open a row with get one record. If status is still broadcast and you have a hash, refresh receipt from Cloud and PATCH ledger.
Limits and retention
See Retention and limits for list caps and rate limits. Do not rely on infinite scroll without filters.