curl --request GET \
--url https://api.satora.io/swap/{id}/swap-and-lock-calldata-permit2import requests
url = "https://api.satora.io/swap/{id}/swap-and-lock-calldata-permit2"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.satora.io/swap/{id}/swap-and-lock-calldata-permit2', 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}/swap-and-lock-calldata-permit2",
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}/swap-and-lock-calldata-permit2"
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}/swap-and-lock-calldata-permit2")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.satora.io/swap/{id}/swap-and-lock-calldata-permit2")
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": [
{
"call_data": "<string>",
"target": "<string>",
"value": "<string>"
}
],
"calls_hash": "<string>",
"claim_address": "<string>",
"coordinator_address": "<string>",
"htlc_kind": "<string>",
"htlc_version": 1,
"lock_token_address": "<string>",
"permit2_address": "<string>",
"preimage_hash": "<string>",
"source_amount": "<string>",
"source_token_address": "<string>",
"timelock": 1,
"depositor_delegation": "<string>",
"eip2612": {
"already_approved": true,
"domain_separator": "<string>",
"nonce": 1,
"supported": true
},
"relay_fee": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Returns structured data for funding an EVM-to-BTC swap via Permit2.
Instead of pre-encoded calldata, this returns the individual components
so the SDK can construct the Permit2 EIP-712 signature and
executeAndCreateWithPermit2 calldata client-side.
The calls array contains only [approve(dexRouter, amount), dexSwap(…)].
No transferFrom — Permit2 handles the token pull.
The Permit2 witness the client signs over these fields is specified on
POST /swap/{id}/fund-gasless.
curl --request GET \
--url https://api.satora.io/swap/{id}/swap-and-lock-calldata-permit2import requests
url = "https://api.satora.io/swap/{id}/swap-and-lock-calldata-permit2"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.satora.io/swap/{id}/swap-and-lock-calldata-permit2', 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}/swap-and-lock-calldata-permit2",
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}/swap-and-lock-calldata-permit2"
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}/swap-and-lock-calldata-permit2")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.satora.io/swap/{id}/swap-and-lock-calldata-permit2")
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": [
{
"call_data": "<string>",
"target": "<string>",
"value": "<string>"
}
],
"calls_hash": "<string>",
"claim_address": "<string>",
"coordinator_address": "<string>",
"htlc_kind": "<string>",
"htlc_version": 1,
"lock_token_address": "<string>",
"permit2_address": "<string>",
"preimage_hash": "<string>",
"source_amount": "<string>",
"source_token_address": "<string>",
"timelock": 1,
"depositor_delegation": "<string>",
"eip2612": {
"already_approved": true,
"domain_separator": "<string>",
"nonce": 1,
"supported": true
},
"relay_fee": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Response
Permit2 funding data
Response containing structured data for Permit2-based coordinator funding.
The SDK uses this to construct the EIP-712 Permit2 signature and
executeAndCreateWithPermit2 calldata client-side. The signature's typed
data, and which field here fills which slot of it, is documented on
POST /swap/{id}/fund-gasless.
EIP-7702 delegation target of the depositor on the source chain, if
its code is a delegation designator (0xef0100 || address); null
when the depositor is a plain EOA. A sponsored claim delegates the
SDK's address to Kernel V3.3, after which Permit2 and EIP-2612
verify signatures via ERC-1271 and the SDK must sign in Kernel's
envelope. A delegation is per chain, so only the source chain's
state is authoritative here.
Tri-state: the key is OMITTED when the code lookup failed (the SDK
then falls back to its own probe), null is an authoritative
"plain EOA", a string is the delegation target. Serde renders
Some(None) as null and None as absent.