Developers
Introducing the XAUConnect Swap API for AI Agents
Public quote and build endpoints for autonomous trading bots, LLM tool calls, and multi-chain DeFi integrations.
XAUConnect now ships a public REST API at https://xauconnect.com/api so AI agents and backend services can request swap quotes and unsigned transactions without loading the web UI. The API aggregates 1inch, 0x, and Jupiter across seven chains — Ethereum, BNB Chain, Polygon, Arbitrum, Base, Avalanche, and Solana.
This release is built for agentic workflows: LangChain tools, OpenAI function calling, autonomous trading bots, and internal treasury scripts can all use the same endpoints the web app uses.
What you can do today
- GET /swap/chains and /swap/tokens — discover supported networks and token addresses
- POST /swap/quote — compare routes and fees across aggregators
- POST /swap/build — receive unsigned EVM calldata or Solana transaction bytes
- POST /swap/cross-chain/quote and /build — bridge assets between chains
- POST /swap/record — report completed swaps for admin analytics
Non-custodial by design
The API never holds private keys and never broadcasts EVM transactions on your behalf. Your agent signs locally (viem, ethers, Turnkey, etc.). On Solana, you sign first and POST /swap/submit-solana with the signed bytes — the server only relays to RPC.
Identify your agent
Send optional headers on every request so usage appears in the admin API Agents tab:
X-Client-Id: my-trading-bot-v1 X-Client-Name: Acme Treasury Bot X-Client-Source: agent
Next steps
Read the quickstart for a full quote → build → sign → record flow, or open the interactive OpenAPI reference at /developers/api.
Ready to integrate?
Follow the quickstart or explore the OpenAPI reference.