curl --request GET \
--url https://api.velora.xyz/v2/delta/prices{
"id": "<string>",
"inputToken": {
"chainId": 123,
"address": "<string>"
},
"outputToken": {
"chainId": 123,
"address": "<string>"
},
"route": {
"origin": {
"input": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
},
"output": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
}
},
"destination": {
"input": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
},
"output": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
}
},
"bridge": {
"protocol": "<string>",
"estimatedTimeMs": 123,
"tags": [],
"contractParams": {
"protocolSelector": "<string>",
"outputToken": "<string>",
"scalingFactor": 123,
"protocolData": "<string>"
}
},
"fees": {
"gas": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
},
"bridge": [
{
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
}
]
}
},
"alternatives": [
{
"origin": {
"input": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
},
"output": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
}
},
"destination": {
"input": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
},
"output": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
}
},
"bridge": {
"protocol": "<string>",
"estimatedTimeMs": 123,
"tags": [],
"contractParams": {
"protocolSelector": "<string>",
"outputToken": "<string>",
"scalingFactor": 123,
"protocolData": "<string>"
}
},
"fees": {
"gas": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
},
"bridge": [
{
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
}
]
}
}
],
"partner": {
"name": "<string>",
"feePercent": 123
},
"spender": "<string>"
}/v2/delta/prices
Recommended route plus alternatives for a same-chain or crosschain Delta V2 swap.
curl --request GET \
--url https://api.velora.xyz/v2/delta/prices{
"id": "<string>",
"inputToken": {
"chainId": 123,
"address": "<string>"
},
"outputToken": {
"chainId": 123,
"address": "<string>"
},
"route": {
"origin": {
"input": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
},
"output": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
}
},
"destination": {
"input": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
},
"output": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
}
},
"bridge": {
"protocol": "<string>",
"estimatedTimeMs": 123,
"tags": [],
"contractParams": {
"protocolSelector": "<string>",
"outputToken": "<string>",
"scalingFactor": 123,
"protocolData": "<string>"
}
},
"fees": {
"gas": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
},
"bridge": [
{
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
}
]
}
},
"alternatives": [
{
"origin": {
"input": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
},
"output": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
}
},
"destination": {
"input": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
},
"output": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
}
},
"bridge": {
"protocol": "<string>",
"estimatedTimeMs": 123,
"tags": [],
"contractParams": {
"protocolSelector": "<string>",
"outputToken": "<string>",
"scalingFactor": 123,
"protocolData": "<string>"
}
},
"fees": {
"gas": {
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
},
"bridge": [
{
"token": {
"chainId": 123,
"address": "<string>"
},
"amount": "<string>",
"amountUSD": "<string>"
}
]
}
}
],
"partner": {
"name": "<string>",
"feePercent": 123
},
"spender": "<string>"
}Query Parameters
Source chain ID. Supported: 1, 10, 56, 100, 130, 137, 8453, 42161, 43114.
1
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
Destination token. For crosschain quotes, the destination token on destChainId.
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
Source amount (SELL) or destination amount (BUY), in raw token units.
"1000000000000000000"
18
6
SELL, BUY Omit for same-chain. When set, response route.bridge is populated.
Address that receives the destination token. Defaults to userAddress.
Partner key. Defaults to anon (1bps fee).
"my-app-name"
Override partner fee in basis points (max 200 = 2%).
0 <= x <= 200Maximum price impact in % (default 15).
Maximum price impact in USD.
Comma-separated list of agent names to include.
Comma-separated list of agent names to exclude.
Comma-separated bridge protocol names to include (crosschain only).
Comma-separated bridge protocol names to exclude.
Allow combining bridge + on-chain swap. Forced to false for BUY side.
Response
Recommended route plus alternatives.
Request id (echo for support tickets).
SELL, BUY Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Up to N additional routes (crosschain only).
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Delta contract address; approve this as ERC-20 spender.
Was this page helpful?