Verify an on-chain funding transaction
curl --request POST \
--url https://mag3nt.com/api/fund/verify \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"tx_hash": "<string>",
"network": "eip155:8453",
"asset": "USDC"
}
'import requests
url = "https://mag3nt.com/api/fund/verify"
payload = {
"tx_hash": "<string>",
"network": "eip155:8453",
"asset": "USDC"
}
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({tx_hash: '<string>', network: 'eip155:8453', asset: 'USDC'})
};
fetch('https://mag3nt.com/api/fund/verify', 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://mag3nt.com/api/fund/verify",
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([
'tx_hash' => '<string>',
'network' => 'eip155:8453',
'asset' => 'USDC'
]),
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://mag3nt.com/api/fund/verify"
payload := strings.NewReader("{\n \"tx_hash\": \"<string>\",\n \"network\": \"eip155:8453\",\n \"asset\": \"USDC\"\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://mag3nt.com/api/fund/verify")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tx_hash\": \"<string>\",\n \"network\": \"eip155:8453\",\n \"asset\": \"USDC\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mag3nt.com/api/fund/verify")
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 \"tx_hash\": \"<string>\",\n \"network\": \"eip155:8453\",\n \"asset\": \"USDC\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"status": "confirmed",
"funded": 123,
"balance": {
"total_funded": 123,
"total_allocated": 123,
"total_spent": 123,
"total_withdrawn": 123,
"available": 123,
"network": "<string>",
"asset": "<string>"
}
}{
"error": "Card not found"
}Funding
Verify an on-chain funding transaction
Submit an on-chain transaction hash to credit your treasury balance. The platform verifies the transaction on-chain, confirms the Transfer event matches the treasury address, and atomically credits your balance. Idempotent: re-submitting an already-confirmed tx_hash returns the existing balance without double-crediting.
POST
/
api
/
fund
/
verify
Verify an on-chain funding transaction
curl --request POST \
--url https://mag3nt.com/api/fund/verify \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"tx_hash": "<string>",
"network": "eip155:8453",
"asset": "USDC"
}
'import requests
url = "https://mag3nt.com/api/fund/verify"
payload = {
"tx_hash": "<string>",
"network": "eip155:8453",
"asset": "USDC"
}
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({tx_hash: '<string>', network: 'eip155:8453', asset: 'USDC'})
};
fetch('https://mag3nt.com/api/fund/verify', 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://mag3nt.com/api/fund/verify",
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([
'tx_hash' => '<string>',
'network' => 'eip155:8453',
'asset' => 'USDC'
]),
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://mag3nt.com/api/fund/verify"
payload := strings.NewReader("{\n \"tx_hash\": \"<string>\",\n \"network\": \"eip155:8453\",\n \"asset\": \"USDC\"\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://mag3nt.com/api/fund/verify")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tx_hash\": \"<string>\",\n \"network\": \"eip155:8453\",\n \"asset\": \"USDC\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mag3nt.com/api/fund/verify")
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 \"tx_hash\": \"<string>\",\n \"network\": \"eip155:8453\",\n \"asset\": \"USDC\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"status": "confirmed",
"funded": 123,
"balance": {
"total_funded": 123,
"total_allocated": 123,
"total_spent": 123,
"total_withdrawn": 123,
"available": 123,
"network": "<string>",
"asset": "<string>"
}
}{
"error": "Card not found"
}Authorizations
API key prefixed with 'Bearer sx_live_...'
Body
application/json
⌘I