Skip to main content
GET
/
v2
/
swap
/
{id}
/
fulfill
Fulfill a swap quote by transaction hash
curl --request GET \
  --url https://api.pods.finance/v2/swap/{id}/fulfill \
  --header 'x-api-key: <api-key>'
import requests

url = "https://api.pods.finance/v2/swap/{id}/fulfill"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://api.pods.finance/v2/swap/{id}/fulfill', 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.pods.finance/v2/swap/{id}/fulfill",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);

$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.pods.finance/v2/swap/{id}/fulfill"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-api-key", "<api-key>")

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.pods.finance/v2/swap/{id}/fulfill")
.header("x-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.pods.finance/v2/swap/{id}/fulfill")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "status": "accepted"
}
{
"error": {
"code": "QUOTE_NOT_FOUND",
"message": "Quote not found or expired"
}
}
{
"error": {
"code": "QUOTE_NOT_FOUND",
"message": "Quote not found or expired"
}
}
{
"error": {
"code": "QUOTE_NOT_FOUND",
"message": "Quote not found or expired"
}
}

Authorizations

x-api-key
string
header
required

API key for authentication. Obtain from your Pods dashboard.

Path Parameters

id
string
required

Quote ID

Example:

"550e8400-e29b-41d4-a716-446655440000"

Query Parameters

txHash
string
required

Hash of the mined transaction to replay

Pattern: ^0x[a-fA-F0-9]{64}$
Example:

"0x61160691804e39f80871573195a87d3be519129ed6c2c73fd3338b5f00f45ee1"

chain
string

Optional chain override for the transaction. Defaults to the quote's origin chain; pass it to replay a leg that lives on a different chain (e.g. a crosschain destination tx).

Example:

"base"

Response

Transaction accepted for processing

status
string
required
Example:

"accepted"