curl --request GET \
--url https://api.satora.io/swap/{id}/redeem-and-swap-calldataimport requests
url = "https://api.satora.io/swap/{id}/redeem-and-swap-calldata"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.satora.io/swap/{id}/redeem-and-swap-calldata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.satora.io/swap/{id}/redeem-and-swap-calldata",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.satora.io/swap/{id}/redeem-and-swap-calldata"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.satora.io/swap/{id}/redeem-and-swap-calldata")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.satora.io/swap/{id}/redeem-and-swap-calldata")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"calls_hash": "<string>",
"gasless_fee_sats": 1,
"min_amount_out": "<string>",
"dex_calldata": {
"data": "<string>",
"to": "<string>",
"value": "<string>"
}
}{
"error": "<string>"
}{
"error": "<string>"
}Returns the gasless claim data for an EVM-targeted swap.
For non-WBTC targets: fetches fresh 1inch DEX calldata with receiver = destination.
For WBTC-direct targets: returns only the gasless fee and calls_hash (no DEX data).
Always returns calls_hash which the client must include in the EIP-712 redeem signature.
curl --request GET \
--url https://api.satora.io/swap/{id}/redeem-and-swap-calldataimport requests
url = "https://api.satora.io/swap/{id}/redeem-and-swap-calldata"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.satora.io/swap/{id}/redeem-and-swap-calldata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.satora.io/swap/{id}/redeem-and-swap-calldata",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.satora.io/swap/{id}/redeem-and-swap-calldata"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.satora.io/swap/{id}/redeem-and-swap-calldata")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.satora.io/swap/{id}/redeem-and-swap-calldata")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"calls_hash": "<string>",
"gasless_fee_sats": 1,
"min_amount_out": "<string>",
"dex_calldata": {
"data": "<string>",
"to": "<string>",
"value": "<string>"
}
}{
"error": "<string>"
}{
"error": "<string>"
}Path Parameters
Swap ID
Query Parameters
EVM destination address for output tokens
Response
Fresh DEX calldata with gasless fee estimate
Response containing fresh DEX calldata for an EVM-targeted gasless claim.
keccak256(abi.encode(calls)) — the hash of the full calls array. Must be included in the client's EIP-712 redeem signature to prevent call substitution.
Backwards-compatibility only: always 0. The settlement gas is now folded
into network_fee at quote time, so the claim path no longer deducts a
separate fee. Kept on the wire for older clients; intended for removal in
a future version.
x >= 0Minimum amount of sweepToken the coordinator must sweep to the destination. This is the value the client must include in the EIP-712 Redeem signature.
DEX swap calldata from 1inch. None for direct WBTC swaps (no DEX component).
Show child attributes
Show child attributes