curl --request GET \
--url https://api.route.fun/api/v2/builders/quote \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.route.fun/api/v2/builders/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.route.fun/api/v2/builders/quote"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"quoteId": "<string>",
"builderCode": "<string>",
"amountOut": "<string>",
"minimumAmountOut": "<string>",
"fees": {
"routeBps": 25,
"builderBps": 25,
"policyVersion": 123,
"builderRecipient": "<string>"
},
"expiresAt": 123,
"settlementAvailable": true,
"chainId": 4663,
"payer": "<string>",
"recipient": "<string>",
"tokenIn": "<string>",
"tokenOut": "<string>",
"amountIn": "<string>",
"grossAmountOut": "<string>",
"routeFee": "<string>",
"builderFee": "<string>",
"policySource": "onchain",
"registry": "<string>",
"provider": "<string>",
"routes": [
{}
],
"warnings": [
"<string>"
]
}Get an attributed builder quote
Requires quote scope and an activated onchain builder ID. Free allows 10 quote requests per minute shared across workspace keys; paid workspace limits remain unchanged. Returns gross output, separate Route and builder fees, net output and minimum received. Amounts are token base units. Omit builderCode to use your workspace ID; omit builderFeeBps to use its registered default.
curl --request GET \
--url https://api.route.fun/api/v2/builders/quote \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.route.fun/api/v2/builders/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.route.fun/api/v2/builders/quote"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"quoteId": "<string>",
"builderCode": "<string>",
"amountOut": "<string>",
"minimumAmountOut": "<string>",
"fees": {
"routeBps": 25,
"builderBps": 25,
"policyVersion": 123,
"builderRecipient": "<string>"
},
"expiresAt": 123,
"settlementAvailable": true,
"chainId": 4663,
"payer": "<string>",
"recipient": "<string>",
"tokenIn": "<string>",
"tokenOut": "<string>",
"amountIn": "<string>",
"grossAmountOut": "<string>",
"routeFee": "<string>",
"builderFee": "<string>",
"policySource": "onchain",
"registry": "<string>",
"provider": "<string>",
"routes": [
{}
],
"warnings": [
"<string>"
]
}Authorizations
Server-side key created in an authenticated developer workspace. Builder codes are public attribution, not credentials.
Query Parameters
^0x[0-9a-fA-F]{40}$^0x[0-9a-fA-F]{40}$^[0-9]+$^0x[0-9a-fA-F]{40}$^0x[0-9a-fA-F]{40}$1 <= x <= 500Public, case-sensitive registered attribution code. May differ from the API key workspace. Omitted: use the key workspace code.
^[A-Za-z0-9_-]{3,32}$0 <= x <= 50route, kyber, nordstern, kyber-direct Response
Successful response
Public, case-sensitive registered attribution code. May differ from the API key workspace. Omitted: use the key workspace code.
^[A-Za-z0-9_-]{3,32}$^[0-9]+$^[0-9]+$Show child attributes
Show child attributes
^0x[0-9a-fA-F]{40}$^0x[0-9a-fA-F]{40}$^0x[0-9a-fA-F]{40}$^0x[0-9a-fA-F]{40}$^[0-9]+$^[0-9]+$^[0-9]+$^[0-9]+$onchain, local-preview