Skip to main content
POST
/
v2
/
kytAttestation
Generate KYT compliance attestation
curl --request POST \
  --url https://api.paxoslabs.com/v2/kytAttestation \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "to": "0x0000000000000000000000000000000000000123",
  "from": "0x0000000000000000000000000000000000000456",
  "chain": "base"
}
'
import requests

url = "https://api.paxoslabs.com/v2/kytAttestation"

payload = {
"to": "0x0000000000000000000000000000000000000123",
"from": "0x0000000000000000000000000000000000000456",
"chain": "base"
}
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({
to: '0x0000000000000000000000000000000000000123',
from: '0x0000000000000000000000000000000000000456',
chain: 'base'
})
};

fetch('https://api.paxoslabs.com/v2/kytAttestation', 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.paxoslabs.com/v2/kytAttestation",
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([
'to' => '0x0000000000000000000000000000000000000123',
'from' => '0x0000000000000000000000000000000000000456',
'chain' => 'base'
]),
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://api.paxoslabs.com/v2/kytAttestation"

payload := strings.NewReader("{\n \"to\": \"0x0000000000000000000000000000000000000123\",\n \"from\": \"0x0000000000000000000000000000000000000456\",\n \"chain\": \"base\"\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://api.paxoslabs.com/v2/kytAttestation")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"to\": \"0x0000000000000000000000000000000000000123\",\n \"from\": \"0x0000000000000000000000000000000000000456\",\n \"chain\": \"base\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.paxoslabs.com/v2/kytAttestation")

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 \"to\": \"0x0000000000000000000000000000000000000123\",\n \"from\": \"0x0000000000000000000000000000000000000456\",\n \"chain\": \"base\"\n}"

response = http.request(request)
puts response.read_body
{
  "attestation": {
    "uuid": "550e8400-e29b-41d4-a716-446655440000",
    "expiration": 1696640400,
    "attester": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
    "signature": "0x44fdc7e4abb2b91960836b6a6833f59e530248fd4a2cdca865eea12b99dd5f62464523e528e582f0dda749ebb32f2d00d525d4c81000df70655cf54dfd2335c61b"
  }
}
{
"error": {
"code": 400,
"message": "Invalid filter syntax.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.paxoslabs.dev/errors/BadRequest",
"fieldViolations": [
{
"field": "filter",
"description": "vaultAddress 0x0x is an invalid hex address."
}
]
}
]
}
}

Authorizations

x-api-key
string
header
required

API key in format: pxl_<public_id>_

Body

application/json
to
string
required

Destination address for funds

Example:

"0x0000000000000000000000000000000000000123"

from
string
required

User wallet address to evaluate

Example:

"0x0000000000000000000000000000000000000456"

chain
string
required

Chain name

Example:

"base"

Response

KYT compliance attestation

attestation
object
required

KYT compliance attestation