curl --request POST \
--url https://app.blockgence.com/v1/monero/proof \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"txid": "<string>",
"address": "<string>",
"tx_key": "<string>",
"signature": "<string>",
"message": ""
}
'import requests
url = "https://app.blockgence.com/v1/monero/proof"
payload = {
"txid": "<string>",
"address": "<string>",
"tx_key": "<string>",
"signature": "<string>",
"message": ""
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
txid: '<string>',
address: '<string>',
tx_key: '<string>',
signature: '<string>',
message: ''
})
};
fetch('https://app.blockgence.com/v1/monero/proof', 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://app.blockgence.com/v1/monero/proof",
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([
'txid' => '<string>',
'address' => '<string>',
'tx_key' => '<string>',
'signature' => '<string>',
'message' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.blockgence.com/v1/monero/proof"
payload := strings.NewReader("{\n \"txid\": \"<string>\",\n \"address\": \"<string>\",\n \"tx_key\": \"<string>\",\n \"signature\": \"<string>\",\n \"message\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<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://app.blockgence.com/v1/monero/proof")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"txid\": \"<string>\",\n \"address\": \"<string>\",\n \"tx_key\": \"<string>\",\n \"signature\": \"<string>\",\n \"message\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/monero/proof")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"txid\": \"<string>\",\n \"address\": \"<string>\",\n \"tx_key\": \"<string>\",\n \"signature\": \"<string>\",\n \"message\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>",
"error": "<string>"
}{
"error": "source_unavailable",
"detail": "<string>",
"source": "<string>",
"reason": "<string>",
"retryable": true,
"chain": "<string>",
"primitive": "<string>",
"operation": "<string>",
"target": "<string>",
"http_status": 123,
"retry_after": 123,
"upstream_message": "<string>",
"source_fault": true,
"failure_cause": "<string>"
}Verify a Monero payment
Verifies that a Monero transaction paid an amount to an address, with the transaction key of the payer or with a proof signature. The verification runs within blockgence: the key, the signature and the message are not sent to any external service.
Body (JSON):
txid: transaction hash, 64 hexadecimal characters without0x.address: the receiving address (standard, integrated or subaddress, mainnet only).tx_key: the transaction key of the payer, as the wallet provides it. It proves only that transaction: it does not allow spending funds or viewing other transactions.signature: instead oftx_key, anOutProofV2…signature (from the payer) or anInProofV2…signature (from the recipient). Version 1 signatures are accepted with a warning.message: the message the proof was signed with, if any. Only withsignature.
Send tx_key or signature, not both.
The response is a sealed document (sha256 in manifest.integrity) with:
verified: there is at least one output to the address with its amount confirmed, and the signature, if any, is valid.claim: the assertion in one line.outputs[]: each output with its amount, confirmed with its Pedersen commitment (commitment_ok).receivedandreceived_atomic: the total received.tx: block, date, confirmations,finalanddouble_spend_seen.reasons,limitationsandmethodology.replay: the data needed to repeat the verification offline. It contains the key or the signature: treat it as case evidence.
The proof demonstrates the payment, not who controls the address or who paid.
Errors: both credentials or neither, a malformed key or signature or one from another transaction, or an
invalid address return 400 with the reason; a transaction no node knows returns 404; a transaction format
blockgence does not read yet returns 422. An error never means “not paid”.
Cost: 10 credits base. Some operations charge less when they reuse a saved result; never more.
curl --request POST \
--url https://app.blockgence.com/v1/monero/proof \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"txid": "<string>",
"address": "<string>",
"tx_key": "<string>",
"signature": "<string>",
"message": ""
}
'import requests
url = "https://app.blockgence.com/v1/monero/proof"
payload = {
"txid": "<string>",
"address": "<string>",
"tx_key": "<string>",
"signature": "<string>",
"message": ""
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
txid: '<string>',
address: '<string>',
tx_key: '<string>',
signature: '<string>',
message: ''
})
};
fetch('https://app.blockgence.com/v1/monero/proof', 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://app.blockgence.com/v1/monero/proof",
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([
'txid' => '<string>',
'address' => '<string>',
'tx_key' => '<string>',
'signature' => '<string>',
'message' => ''
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.blockgence.com/v1/monero/proof"
payload := strings.NewReader("{\n \"txid\": \"<string>\",\n \"address\": \"<string>\",\n \"tx_key\": \"<string>\",\n \"signature\": \"<string>\",\n \"message\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<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://app.blockgence.com/v1/monero/proof")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"txid\": \"<string>\",\n \"address\": \"<string>\",\n \"tx_key\": \"<string>\",\n \"signature\": \"<string>\",\n \"message\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.blockgence.com/v1/monero/proof")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"txid\": \"<string>\",\n \"address\": \"<string>\",\n \"tx_key\": \"<string>\",\n \"signature\": \"<string>\",\n \"message\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"detail": "<string>",
"error": "<string>"
}{
"detail": "<string>",
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"detail": "<string>",
"error": "<string>"
}{
"error": "source_unavailable",
"detail": "<string>",
"source": "<string>",
"reason": "<string>",
"retryable": true,
"chain": "<string>",
"primitive": "<string>",
"operation": "<string>",
"target": "<string>",
"http_status": 123,
"retry_after": 123,
"upstream_message": "<string>",
"source_fault": true,
"failure_cause": "<string>"
}Authorizations
Headers
Body
Response
The sealed document with the verification result.