Skip to main content
  • Tokens: Use token id values to request quotes via /quotes for 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

Always use the id field (ObjectId format) when passing tokens to /quotes. Passing symbols will not work.

Fetching Tokens

There are two approaches — choose the one that fits your integration: Paginate through all tokens and store in your database. Refresh every 24 hours.

Token Search (On-Demand)

Search by name or symbol using the term parameter.
Query Parameters: Example Response:

Using Token IDs in Quotes

Pass the id 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

Query Parameters: Example Response:

Using Networks

Validate Addresses

Use the addressValidation regex to validate user input before submitting:

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