curl --request POST \
--url https://business.madhousewallet.com/api/payouts/transfer/v2/confirm-transfer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transfer_id": "507f1f77bcf86cd799439011",
"tx_hash": "0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1"
}
'import requests
url = "https://business.madhousewallet.com/api/payouts/transfer/v2/confirm-transfer"
payload = {
"transfer_id": "507f1f77bcf86cd799439011",
"tx_hash": "0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transfer_id: '507f1f77bcf86cd799439011',
tx_hash: '0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1'
})
};
fetch('https://business.madhousewallet.com/api/payouts/transfer/v2/confirm-transfer', 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://business.madhousewallet.com/api/payouts/transfer/v2/confirm-transfer",
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([
'transfer_id' => '507f1f77bcf86cd799439011',
'tx_hash' => '0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://business.madhousewallet.com/api/payouts/transfer/v2/confirm-transfer"
payload := strings.NewReader("{\n \"transfer_id\": \"507f1f77bcf86cd799439011\",\n \"tx_hash\": \"0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://business.madhousewallet.com/api/payouts/transfer/v2/confirm-transfer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"transfer_id\": \"507f1f77bcf86cd799439011\",\n \"tx_hash\": \"0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://business.madhousewallet.com/api/payouts/transfer/v2/confirm-transfer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transfer_id\": \"507f1f77bcf86cd799439011\",\n \"tx_hash\": \"0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1\"\n}"
response = http.request(request)
puts response.read_body{
"transfer_id": "507f1f77bcf86cd799439011",
"status": "pending_match",
"message": "tx_hash recorded — the system will match your deposit and initiate the payout automatically"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Confirm a v2 transfer
After sending USDC on-chain to the deposit_address returned by POST /api/payouts/transfer/v2, call this endpoint with the transfer_id and the on-chain transaction hash (tx_hash). The platform will use the hash to match the incoming deposit to your transfer and automatically initiate the fiat payout to your recipient.
Important:
- Each
tx_hashmay only be used once across the entire platform. A hash that has already been associated with any transfer (including your own) is rejected with409. This prevents replay attacks. - A second call with the same
transfer_idand the sametx_hashis idempotent — it returns the current status without error. - A second call with the same
transfer_idbut a differenttx_hashis rejected with409— overwriting is not allowed. - Once the deposit is detected (status moves past
pending_match), this endpoint returns the current status without making any changes.
Rate limit: 20 requests/minute.
curl --request POST \
--url https://business.madhousewallet.com/api/payouts/transfer/v2/confirm-transfer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"transfer_id": "507f1f77bcf86cd799439011",
"tx_hash": "0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1"
}
'import requests
url = "https://business.madhousewallet.com/api/payouts/transfer/v2/confirm-transfer"
payload = {
"transfer_id": "507f1f77bcf86cd799439011",
"tx_hash": "0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transfer_id: '507f1f77bcf86cd799439011',
tx_hash: '0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1'
})
};
fetch('https://business.madhousewallet.com/api/payouts/transfer/v2/confirm-transfer', 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://business.madhousewallet.com/api/payouts/transfer/v2/confirm-transfer",
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([
'transfer_id' => '507f1f77bcf86cd799439011',
'tx_hash' => '0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://business.madhousewallet.com/api/payouts/transfer/v2/confirm-transfer"
payload := strings.NewReader("{\n \"transfer_id\": \"507f1f77bcf86cd799439011\",\n \"tx_hash\": \"0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://business.madhousewallet.com/api/payouts/transfer/v2/confirm-transfer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"transfer_id\": \"507f1f77bcf86cd799439011\",\n \"tx_hash\": \"0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://business.madhousewallet.com/api/payouts/transfer/v2/confirm-transfer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transfer_id\": \"507f1f77bcf86cd799439011\",\n \"tx_hash\": \"0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1\"\n}"
response = http.request(request)
puts response.read_body{
"transfer_id": "507f1f77bcf86cd799439011",
"status": "pending_match",
"message": "tx_hash recorded — the system will match your deposit and initiate the payout automatically"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Pass your API key as a Bearer token: Authorization: Bearer mw_live_<keyId>_<secret>
Body
The transfer_id returned by POST /api/payouts/transfer/v2.
"507f1f77bcf86cd799439011"
On-chain transaction hash of your USDC send. EVM format: 0x followed by 64 hex chars (32 bytes). Solana format: base58 signature (85–88 chars).
"0xabc123def456abc123def456abc123def456abc123def456abc123def456abc1"
Response
tx_hash recorded or already processing
The transfer ID.
"507f1f77bcf86cd799439011"
Current transfer status after recording the hash.
awaiting_deposit, pending_match, processing, deposit_sent, transfer_created, completed, failed, refunded "pending_match"
Human-readable summary of the action taken.
"tx_hash recorded — the system will match your deposit and initiate the payout automatically"
