Working with prices
How the client resolves a live USD price and 24h change for any supported symbol.
Resolution order
- Query the on-chain token index for the symbol.
- Filter to same-symbol candidates and pick the highest-liquidity one.
- Read
usdPriceandstats24h.priceChange. - If unavailable, fall back to the best Robinhood Chain pair on DexScreener.
- Cache the result briefly so the interface stays fast.
ETH settlement
// pay in native ETH at the live rate
// coin prices: on-chain index · fallback: DexScreener · cached ~60s
ethAmount = usdTotal / ethUsd; // live rate from the WETH pairPick by liquidity, not by nameMany memecoins share a ticker. Always choose the deepest-liquidity match for a symbol, or you'll price a copycat token.