Skip to main content
A minimal Go program that calls GET /prices and prints the quoted destAmount. Standard library only.

File tree

Install

main.go

Run it

You should see the quoted destAmount (USDC, 6 decimals) and gasCostUSD printed.

Next: build the transaction

Feed the priceRoute into POST /transactions/:chainId to get ready-to-broadcast calldata. See Market API → How it works.
Last modified on June 14, 2026