Skip to main content
TED Protocol provides a REST API for querying configuration, getting swap quotes, building transactions, and executing gasless relayed transactions.

Base URL

Response Format

All responses follow a common wrapper structure:
On error:

Configuration

Endpoints for retrieving supported chains, DEXs, tokens, and contract addresses.

Get Chains

Returns the list of supported blockchain networks.
Parameters: None Response Fields: Example:

Get DEXs

Returns available DEXs for a specific chain.
Path Parameters: Response Fields: Example:

Get Tokens

Returns supported tokens for a specific chain, including their capabilities (swap, bridge, etc.).
Path Parameters: Response Fields: Example:

Get Contracts

Returns protocol contract addresses for a specific chain.
Path Parameters: Response Fields: Example:

Quote

Get Quote

Returns a multi-path swap quote with optimal routing across available DEXs.
Request Body: Response Fields: Example — Same-chain swap:
Example — Cross-chain swap:

Transaction

Build Transaction

Builds a ready-to-sign transaction based on the selected action type. The action field determines the transaction type and required parameters.
Common Request Fields: Action Types: Additional Fields by Action: For swap and swapMultiHop: For bridgeOnlyLz and bridgeOnlyCctp: For swapAndBridgeLz and swapAndBridgeCctp: Response Fields: Example — Single-chain swap:
Example — Cross-chain swap and bridge:

Relayer (Gasless)

Endpoints for gasless transaction execution. Users sign the transaction, and the relayer submits it on-chain, paying the gas fee.

Estimate Relayer Fee

Returns the estimated relayer fee for a gasless transaction.
Request Body: Response Fields: Example:

Execute Relay Transaction

Submits a signed transaction for gasless execution via the relayer.
Request Body: Strategy Types: Response Fields: Example — Generic relay:
Example — Gasless relay (JavaScript):

Error Handling

When a request fails, the response includes an error message:
Common Error Responses: