- A SaucerSwap API key for the REST calls (the quote step works without one)
curl, or Node.js 18+, or Python 3 withrequests
1
Get an API key
The REST data API authenticates with an
x-api-key header. Request a key by emailing [email protected] — see Authentication for what to include and what to expect. Substitute your key for YOUR_API_KEY below.2
Fetch token data
Fetch the SAUCE token (Representative response (field values from the OpenAPI specification; live prices will differ):
0.0.731861) with all of its market metadata:Output
price is denominated in tinybar (1 HBAR = 100,000,000 tinybar), and amounts are strings in the token’s smallest unit. See Conventions.3
List liquidity pools
List every V2 concentrated liquidity pool, including fee tier and current tick:Representative response (one array element, from the OpenAPI specification):
Output
4
Get a live swap quote
Quotes come from the on-chain Live response captured on July 9, 2026 (the first 32-byte word is Decoded,
QuoterV2 contract (0.0.3949424) and cost nothing: Hedera’s public mirror node simulates the call. This example quotes 100 HBAR into SAUCE through the WHBAR/SAUCE 0.30% pool. No API key is required.amountOut):Output
amountOut is 507736752 — with 6 decimals, 100 HBAR quoted to ≈507.74 SAUCE at capture time. Your numbers will track the live pool price.Where to go from here
The quote you just fetched is the first half of a swap: pass it as the minimum output when you execute the swap through the SwapRouter. For V3 order book quotes, the Orderbook API exposes publicquote/exact-input and quote/exact-output endpoints per market.
Next steps
Swap HBAR for tokens (V2)
Turn the quote into an executed swap.
API reference
Every REST and Orderbook API endpoint.
Orderbook API
Trade the V3 order book programmatically.
Contract deployments
All contract and token IDs used above.