curl --request POST \
--url https://api.eco.com/quotes/v3/quotes/exactIn/swap \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"dAppID": "your-app-id",
"quoteRequest": {
"sourceChainID": 8453,
"destinationChainID": 1399811149,
"sourceToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"destinationToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"sourceAmount": "20000000",
"funder": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"recipient": "H3AXGKhZQ9KCHkJFYRm14ccjHYc2bkU1DfEXpoX5awwW",
"slippage": 0.5
}
}
'{
"data": [
{
"quoteID": "quote:3ec76cbf-a73d-47f9-bc62-86f36eba6be1",
"quoteResponseID": "quoteResponse:f958e148-dd70-431e-95ad-eaf0bde4fad1",
"solverID": "0xd3EAAe58F060737fd1D9A435ce26d8deC05E3697",
"receiveSignedIntentUrl": "https://solver-yellow.eco.com/api/v1/quotes",
"quoteData": {
"contracts": {
"sourcePortal": "0xEC000064576f9C95a8623Bc0eff3db6d296ea6df",
"destinationPortal": "0xEC000064576f9C95a8623Bc0eff3db6d296ea6df",
"prover": "0xeC0008acc34d3D0CAa6758Ce788091e473812e28"
},
"quoteResponse": {
"intentExecutionType": "SELF_PUBLISH",
"sourceChainID": 8453,
"destinationChainID": 42161,
"finalDestinationChainID": 42161,
"sourceToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"destinationToken": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
"sourceAmount": "20000000",
"destinationAmount": "19930000",
"minimumDestinationAmount": "19930000",
"funder": "0x000000000000000000000000000000000000dEaD",
"refundRecipient": "0x000000000000000000000000000000000000dEaD",
"recipient": "0x000000000000000000000000000000000000dEaD",
"fees": [
{
"name": "Eco Protocol Fee",
"description": "Protocol fee for fulfilling intent on chain 42161",
"token": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"symbol": "USDC",
"decimals": 6
},
"amount": "70000"
}
],
"deadline": 1784839631,
"quoteExpiry": 1784839001,
"estimatedFulfillTimeSec": 7,
"encodedRoute": "0x..."
}
}
}
]
}Fetch any-token-to-any-token quotes
Returns one or more solver quotes for an exact-input cross-chain swap between any supported source token and any supported destination token, via api.eco.com.
curl --request POST \
--url https://api.eco.com/quotes/v3/quotes/exactIn/swap \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"dAppID": "your-app-id",
"quoteRequest": {
"sourceChainID": 8453,
"destinationChainID": 1399811149,
"sourceToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"destinationToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"sourceAmount": "20000000",
"funder": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"recipient": "H3AXGKhZQ9KCHkJFYRm14ccjHYc2bkU1DfEXpoX5awwW",
"slippage": 0.5
}
}
'{
"data": [
{
"quoteID": "quote:3ec76cbf-a73d-47f9-bc62-86f36eba6be1",
"quoteResponseID": "quoteResponse:f958e148-dd70-431e-95ad-eaf0bde4fad1",
"solverID": "0xd3EAAe58F060737fd1D9A435ce26d8deC05E3697",
"receiveSignedIntentUrl": "https://solver-yellow.eco.com/api/v1/quotes",
"quoteData": {
"contracts": {
"sourcePortal": "0xEC000064576f9C95a8623Bc0eff3db6d296ea6df",
"destinationPortal": "0xEC000064576f9C95a8623Bc0eff3db6d296ea6df",
"prover": "0xeC0008acc34d3D0CAa6758Ce788091e473812e28"
},
"quoteResponse": {
"intentExecutionType": "SELF_PUBLISH",
"sourceChainID": 8453,
"destinationChainID": 42161,
"finalDestinationChainID": 42161,
"sourceToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"destinationToken": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
"sourceAmount": "20000000",
"destinationAmount": "19930000",
"minimumDestinationAmount": "19930000",
"funder": "0x000000000000000000000000000000000000dEaD",
"refundRecipient": "0x000000000000000000000000000000000000dEaD",
"recipient": "0x000000000000000000000000000000000000dEaD",
"fees": [
{
"name": "Eco Protocol Fee",
"description": "Protocol fee for fulfilling intent on chain 42161",
"token": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"symbol": "USDC",
"decimals": 6
},
"amount": "70000"
}
],
"deadline": 1784839631,
"quoteExpiry": 1784839001,
"estimatedFulfillTimeSec": 7,
"encodedRoute": "0x..."
}
}
}
]
}Authorizations
Body
Caller-supplied identifier for your app.
"your-app-id"
Show child attributes
Show child attributes
Intent execution types to fetch quotes for. Defaults to
["SELF_PUBLISH"] (on-chain publish-and-fund). Use GASLESS
for the gasless flow, where the signed intent is posted to the
solver's receiveSignedIntentUrl.
SELF_PUBLISH, GASLESS DEPRECATED — use quoteRequest.slippage (percent) instead,
which takes precedence when both are set. Slippage tolerance in
basis points, forwarded to solvers and applied to each swap
leg.
1 <= x <= 1000050
Response
One or more solver quotes
One or more solver quotes. Pick the quote with the highest
quoteData.quoteResponse.destinationAmount.
1Show child attributes
Show child attributes
