Verify finalized builder fee attribution
curl --request POST \
--url https://api.route.fun/api/v2/builders/receipts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"quoteId": "<string>",
"hash": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({quoteId: '<string>', hash: '<string>'})
};
fetch('https://api.route.fun/api/v2/builders/receipts', 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/receipts"
payload = {
"quoteId": "<string>",
"hash": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "confirming",
"hash": "<string>",
"builderCode": "<string>",
"routeFee": "<string>",
"builderFee": "<string>",
"amountOut": "<string>",
"tokenOut": "<string>"
}Builder swaps
Verify finalized builder fee attribution
Requires receipts scope. Use the same API key that prepared the swap. Returns confirming until finality, then verifies and records the attributed settlement.
POST
/
api
/
v2
/
builders
/
receipts
Verify finalized builder fee attribution
curl --request POST \
--url https://api.route.fun/api/v2/builders/receipts \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"quoteId": "<string>",
"hash": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({quoteId: '<string>', hash: '<string>'})
};
fetch('https://api.route.fun/api/v2/builders/receipts', 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/receipts"
payload = {
"quoteId": "<string>",
"hash": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "confirming",
"hash": "<string>",
"builderCode": "<string>",
"routeFee": "<string>",
"builderFee": "<string>",
"amountOut": "<string>",
"tokenOut": "<string>"
}Authentication · Builder integration
Authorizations
Server-side key created in an authenticated developer workspace. Builder codes are public attribution, not credentials.
Response
Successful response
Available options:
confirming, finalized Public, case-sensitive registered attribution code. May differ from the API key workspace. Omitted: use the key workspace code.
Pattern:
^[A-Za-z0-9_-]{3,32}$Pattern:
^[0-9]+$Pattern:
^[0-9]+$Pattern:
^[0-9]+$Pattern:
^0x[0-9a-fA-F]{40}$