Builds an unsigned transaction to buy any token - DexL bonding curve, graduated DEX pair, or any other token with WETH liquidity on the chain's DEX router
# 1. Ask the endpoint what it costs (no payment, no wallet needed): curl -i -X POST 'https://api.dexl.io/api/build-tx/buy' # -> HTTP/1.1 402 Payment Required # the response carries the price, asset and pay-to address. # 2. Pay and retry with any x402 client: npx x402-fetch -X POST 'https://api.dexl.io/api/build-tx/buy'
Endpoint: https://api.dexl.io/api/build-tx/buy. Operated by api.dexl.io, not by Animica. Price and availability were correct at the last probe on 2026-10-01 and are set by the operator, who may change them.
Builds unsigned transaction(s) to sell any token - DexL bonding curve, graduated DEX pair, or any other token with WETH liquidity on the chain's DEX router (inc…