Skip to main content
POST
/
dex
/
confirmTx
Confirm DEX transaction
curl --request POST \
  --url https://api-partner.houdiniswap.com/v2/dex/confirmTx \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "txHash": "<string>"
}
'
import requests

url = "https://api-partner.houdiniswap.com/v2/dex/confirmTx"

payload = {
"id": "<string>",
"txHash": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '<string>', txHash: '<string>'})
};

fetch('https://api-partner.houdiniswap.com/v2/dex/confirmTx', 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-partner.houdiniswap.com/v2/dex/confirmTx",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '<string>',
'txHash' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api-partner.houdiniswap.com/v2/dex/confirmTx"

payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"txHash\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api-partner.houdiniswap.com/v2/dex/confirmTx")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"txHash\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api-partner.houdiniswap.com/v2/dex/confirmTx")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"txHash\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
true
{
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}
{
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}
{
"message": "<string>",
"code": "<string>",
"fields": {},
"requestId": "<string>"
}
{
"message": "<string>",
"code": "<string>",
"requestId": "<string>"
}

Authorizations

Authorization
string
header
required

Body

application/json

Request body for confirming a DEX transaction

id
string
required

The Houdini order ID

Minimum string length: 3
txHash
string

The transaction hash to confirm. Required for on-chain orders, optional for off-chain orders. Supports multiple chain formats: EVM (0x + 64 hex), Solana (base58), Bitcoin (hex), TON, Tron, Sui.

Required string length: 10 - 128
Pattern: ^[a-zA-Z0-9+/=_.-]+$

Response

Transaction confirmed

The response is of type boolean.