Skip to main content
The Routes V3 API is a unified interface to Eco’s stablecoin settlement network, a production-grade, server-to-server integration path that gives you full control to program custom money-movement logic and configure the speed, cost, and security parameters that match your use case. Three steps: get a quote, publish and fund the intent onchain using the encodedRoute from the quote, poll for fulfillment. For the full OpenAPI surface, see the API Reference.

0. Prerequisites

  • Source-chain RPC and a funded wallet
  • HTTP client (curl, fetch, axios)
  • Web3 library (viem, ethers)
No authentication is required. Pass an identifier as dAppID in the request body for attribution.

1. Get a quote

The V3 quote API returns the best quote ready for onchain execution. It returns the encodedRoute you’ll pass straight to the Portal, you don’t construct the intent struct yourself.
Available quote endpoints: Response shape:

2. Approve the reward token

Standard ERC-20 approve to contracts.sourcePortal for the reward amount (quoteResponse.sourceAmount).

3. Publish and fund

Build the reward struct from the quote and call publishAndFund on the source Portal.

4. Track fulfillment

Status returns:
Typical fulfillment: 20–40 seconds, depending on source-chain finality.

5. Refunds (if expired)

If the intent expires unfulfilled, call refund(routeHash, reward) on the source Portal to reclaim the reward tokens. Refunds are also driven by an independent permissionless service.

Custom intents with destination calls

If you need arbitrary contract calls on the destination chain (bridge AND deposit, for example), build the intent’s route.calls array yourself and call publishAndFund with a hand-built route, see Destination calls.