curl
curl -X POST https://verification.didit.me/v3/travel-rule/widget/{token}/proofs/{proof_id}/verify/ \
-H 'Content-Type: application/json' \
-d '{"signature": "0x..."}'import requests
url = "https://verification.didit.me/v3/travel-rule/widget/{token}/proofs/{proof_id}/verify/"
payload = {
"signature": "<string>",
"txid": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({signature: '<string>', txid: '<string>'})
};
fetch('https://verification.didit.me/v3/travel-rule/widget/{token}/proofs/{proof_id}/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://verification.didit.me/v3/travel-rule/widget/{token}/proofs/{proof_id}/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([
'signature' => '<string>',
'txid' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://verification.didit.me/v3/travel-rule/widget/{token}/proofs/{proof_id}/verify/"
payload := strings.NewReader("{\n \"signature\": \"<string>\",\n \"txid\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://verification.didit.me/v3/travel-rule/widget/{token}/proofs/{proof_id}/verify/")
.header("Content-Type", "application/json")
.body("{\n \"signature\": \"<string>\",\n \"txid\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/travel-rule/widget/{token}/proofs/{proof_id}/verify/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"signature\": \"<string>\",\n \"txid\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"proof_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"method": "MESSAGE_SIGNING",
"status": "PENDING",
"is_ownership_verified": true,
"transfer_status": "<string>",
"detail": "<string>",
"code": ""
}{
"detail": "<string>",
"code": "",
"status": "PENDING",
"proof_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"method": "MESSAGE_SIGNING",
"max_attempts": 123,
"attempts_used": 123,
"attempts_remaining": 123
}{
"detail": "<string>",
"code": "",
"status": "PENDING",
"proof_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"method": "MESSAGE_SIGNING",
"max_attempts": 123,
"attempts_used": 123,
"attempts_remaining": 123
}{
"detail": "<string>",
"code": "",
"status": "PENDING",
"proof_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"method": "MESSAGE_SIGNING",
"max_attempts": 123,
"attempts_used": 123,
"attempts_remaining": 123
}Travel Rule
إثبات ملكية المحفظة: إرسال الدليل عبر API - Travel Rule
تتيح Didit إرسال توقيع أو معرّف معاملة إيداع تجريبية أو لقطة شاشة لإثبات ملكية المحفظة. المحاولة الفاشلة تُرجع رمزاً، والإيداع الخاطئ يُرفض.
POST
/
v3
/
travel-rule
/
widget
/
{token}
/
proofs
/
{proof_id}
/
verify
/
curl
curl -X POST https://verification.didit.me/v3/travel-rule/widget/{token}/proofs/{proof_id}/verify/ \
-H 'Content-Type: application/json' \
-d '{"signature": "0x..."}'import requests
url = "https://verification.didit.me/v3/travel-rule/widget/{token}/proofs/{proof_id}/verify/"
payload = {
"signature": "<string>",
"txid": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({signature: '<string>', txid: '<string>'})
};
fetch('https://verification.didit.me/v3/travel-rule/widget/{token}/proofs/{proof_id}/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://verification.didit.me/v3/travel-rule/widget/{token}/proofs/{proof_id}/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([
'signature' => '<string>',
'txid' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://verification.didit.me/v3/travel-rule/widget/{token}/proofs/{proof_id}/verify/"
payload := strings.NewReader("{\n \"signature\": \"<string>\",\n \"txid\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://verification.didit.me/v3/travel-rule/widget/{token}/proofs/{proof_id}/verify/")
.header("Content-Type", "application/json")
.body("{\n \"signature\": \"<string>\",\n \"txid\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://verification.didit.me/v3/travel-rule/widget/{token}/proofs/{proof_id}/verify/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"signature\": \"<string>\",\n \"txid\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"proof_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"method": "MESSAGE_SIGNING",
"status": "PENDING",
"is_ownership_verified": true,
"transfer_status": "<string>",
"detail": "<string>",
"code": ""
}{
"detail": "<string>",
"code": "",
"status": "PENDING",
"proof_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"method": "MESSAGE_SIGNING",
"max_attempts": 123,
"attempts_used": 123,
"attempts_remaining": 123
}{
"detail": "<string>",
"code": "",
"status": "PENDING",
"proof_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"method": "MESSAGE_SIGNING",
"max_attempts": 123,
"attempts_used": 123,
"attempts_remaining": 123
}{
"detail": "<string>",
"code": "",
"status": "PENDING",
"proof_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"method": "MESSAGE_SIGNING",
"max_attempts": 123,
"attempts_used": 123,
"attempts_remaining": 123
}معلمات المسار
token جلسة مبهم يُعاد عند إنشاء جلسة الأداة.
معرّف proof_id الذي تم إرجاعه عند بدء الإثبات.
الجسم
application/jsonmultipart/form-data
الاستجابة
VERIFIED، أو لا تزال PENDING (لقطة شاشة قيد المراجعة، إيداع لم يُفهرس أو لم يتم تأكيده بعد، مع الرمز DEPOSIT_NOT_FOUND أو DEPOSIT_UNCONFIRMED).
الخيارات المتاحة:
MESSAGE_SIGNING, SATOSHI_TEST, SCREENSHOT, SELF_DECLARATION الخيارات المتاحة:
PENDING, VERIFIED, REJECTED, EXPIRED موجود عندما يكون الإثبات بتصنيف VERIFIED: تم الآن التحقق من ملكية إدخال دفتر العناوين.
موجود عندما يكون الإثبات بتصنيف VERIFIED: حالة التحويل المرتبط، وقيمته null إذا لم يوجد تحويل.
موجود طالما ظل الإثبات بالحالة PENDING: لقطة شاشة مرسلة قيد المراجعة، أو إيداع تجريبي لم يتم تأكيده بعد.
موجود في الإيداع التجريبي المعلق: يوضح سبب عدم تأكيده بعد.
الخيارات المتاحة:
, SIGNATURE_INVALID, SIGNATURE_UNSUPPORTED_SCHEME, DEPOSIT_NOT_FOUND, DEPOSIT_UNCONFIRMED, DEPOSIT_LOOKUP_FAILED, DEPOSIT_MISMATCH, DEPOSIT_STALE, TXID_REUSED, CHAIN_UNSUPPORTED, WINDOW_EXPIRED, OWNERSHIP_CHANGED, METHOD_SWITCHED, REVIEW_REJECTED, ABANDONED آخر تعديل في ٧ نوفمبر ٢٠٢٦