Returns the gasless claim data for an EVM-targeted swap.
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>"
}BTC → EVM Swaps
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.
GET
/
swap
/
{id}
/
redeem-and-swap-calldata
Returns the gasless claim data for an EVM-targeted swap.
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>"
}Response
Fresh DEX calldata with gasless fee estimate
Response containing fresh DEX calldata for an EVM-targeted gasless claim.