GET /prices and prints the quoted destAmount. No SDK, just fetch.
File tree
Install
src/quote.ts
Run it
destAmount (USDC, 6 decimals) and gasCostUSD printed.
Next: build the transaction
Feed thepriceRoute into POST /transactions/:chainId to get ready-to-broadcast calldata. See Market API → How it works.
Related pages
- Market API overview — when to use Market routing.
- Market API → How it works — quote → build → broadcast flow.
- Market API reference — full parameter list.
- SDK — typed TypeScript wrapper if you’d rather not handle HTTP yourself.