- Tokens: Use token
idvalues to request quotes via/quotesfor all swap types (standard, private, DEX). - Networks: Use network data for UI display (logos, names, explorer links) and address validation.
Tokens
Token Identifiers
In API v2, both CEX and DEX tokens are fetched from the same/tokens endpoint. Every token has a single id field (MongoDB ObjectId format) used in all quote requests.
- CEX Tokens — filter with
hasCex=true(used for standard and private swaps) - DEX Tokens — filter with
hasDex=true(used for on-chain DEX swaps)
Token Fields
Fetching Tokens
There are two approaches — choose the one that fits your integration:Bulk Fetch + Cache (Recommended for Production)
Paginate through all tokens and store in your database. Refresh every 24 hours.- CEX Tokens
- DEX Tokens
Token Search (On-Demand)
Search by name or symbol using theterm parameter.
Example Response:
Using Token IDs in Quotes
Pass theid from the token response as from and to parameters in /quotes:
Networks (Chains)
Chain Identifiers
Houdini exposes supported blockchain networks via the/chains endpoint. Use shortName to filter tokens by chain and for address validation.
Fetching Chains
Example Response:
Using Networks
Validate Addresses
Use theaddressValidation regex to validate user input before submitting:
Generate Explorer Links
Check Memo Requirements
Next Steps
DEX Swap Integration
Learn how to use DEX tokens in on-chain swaps
Standard Swap Flow
Integrate standard CEX swaps using the tokens endpoint
Private Swap Flow
Implement private swaps with CEX tokens