cURL
curl --request POST \
--url https://api.relay.link/fast-fill \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"requestId": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({requestId: '<string>'})
};
fetch('https://api.relay.link/fast-fill', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/fast-fill"
payload = { "requestId": "<string>" }
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "Request successfully queued for fast fill."
}{
"message": "Currency is required and could not be determined."
}{
"message": "Unauthorized: Check API Key"
}{
"message": "Forbidden: Fast fill requires a sponsoring wallet with app balance.",
"errorCode": "FORBIDDEN"
}{
"message": "Request not found"
}{
"message": "Conflict: This request is already being processed."
}{
"message": "An internal server error occurred."
}API Reference
Fast Fill
This API accelerates the destination fill
POST
/
fast-fill
cURL
curl --request POST \
--url https://api.relay.link/fast-fill \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"requestId": "<string>"
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({requestId: '<string>'})
};
fetch('https://api.relay.link/fast-fill', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/fast-fill"
payload = { "requestId": "<string>" }
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "Request successfully queued for fast fill."
}{
"message": "Currency is required and could not be determined."
}{
"message": "Unauthorized: Check API Key"
}{
"message": "Forbidden: Fast fill requires a sponsoring wallet with app balance.",
"errorCode": "FORBIDDEN"
}{
"message": "Request not found"
}{
"message": "Conflict: This request is already being processed."
}{
"message": "An internal server error occurred."
}Headers
Body
application/json
Optional solver input amount observed on origin, in raw base units. For an EXACT_INPUT or EXPECTED_OUTPUT quote with an origin swap it must be between the quote's minimum amount and the quoted amount; otherwise it must equal the quoted amount. Omit to use the quoted amount.
Was this page helpful?