Add VeraData as x402 merchant example — LATAM sanctions screening and KYB for autonomous agents

Đang mở
#1,359 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
58/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với các import AgentKit và get_langchain_tools được hiển thị trong issue, sau đó xem xét các điểm vào API VeraData tại /solutions/kyb-complete-{country} và /sanctions/quick cũng như tài liệu API được liên kết. Được coi là hoàn tất khi một ví dụ AgentKit phù hợp ghi lại các lệnh gọi VeraData, hành vi thanh toán x402, các trường compliance được trả về và một cách để xác minh ví dụ bằng cách sử dụng quy trình dùng thử đã nêu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

AgentKit enables agents to make x402 payments. Adding VeraData as an example merchant would show a compliance verification use case — agents that screen counterparties before initiating transactions in Latin America.

The use case

An AgentKit-powered agent that:

  1. Receives a task: "Onboard Bancolombia S.A. as a new counterparty"
  2. Calls VeraData via x402 (POST https://api.veradata.dev/solutions/kyb-complete-co)
  3. AgentKit pays $0.15 USDC automatically
  4. Agent receives: registry record (RUES) + sanctions screening (OFAC+UN+EU+UK) + risk narrative + verdict: VERIFIED
  5. Agent proceeds with onboarding or halts based on the compliance result

Alternative entry point at $0.01 for quick OFAC-only screening:

POST https://api.veradata.dev/sanctions/quick

Code example

from coinbase_agentkit import AgentKit, AgentKitConfig
from coinbase_agentkit_langchain import get_langchain_tools
import requests

# AgentKit handles wallet and x402 payment
kit = AgentKit(AgentKitConfig(cdp_api_key_name="...", cdp_api_key_private_key="..."))

# Custom tool that calls VeraData for KYB
def verify_counterparty(company_name: str, country: str = "CO") -> dict:
    response = requests.post(
        f"https://api.veradata.dev/solutions/kyb-complete-{country}",
        json={"company_name": company_name},
        # AgentKit intercepts 402 and pays $0.15 USDC automatically
    )
    result = response.json()
    return {
        "verdict": result["verdict"],           # VERIFIED / UNVERIFIED / BLOCKED
        "sanctions_matches": result["sanctions_result"]["matches"],
        "risk_score": result["risk_score"],
        "audit_hash": result["audit_hash"],     # SHA-256 chain for compliance trail
    }

# Quick OFAC-only check at $0.01
def quick_sanctions_check(name: str) -> dict:
    response = requests.post(
        "https://api.veradata.dev/sanctions/quick",
        json={"name": name},
        # AgentKit pays $0.01 USDC automatically
    )
    return response.json()

Why this use case matters

Autonomous agents initiating financial relationships in Latin America face mandatory regulatory requirements:

  • SARLAFT (Colombia): screening required before any business relationship begins
  • OFAC: exposure is a federal liability regardless of jurisdiction
  • EU AI Act Art.12: immutable audit trail required for AI-assisted decisions

Existing compliance platforms (Refinitiv, Dow Jones Risk, LexisNexis) have no native x402 integration and cost thousands/month with procurement cycles. VeraData is built specifically for agent-native micropayment compliance.

x402 compliance

  • x402Version: 2 · PAYMENT-REQUIRED header · eip155:8453 (Base) + Solana
  • MCP endpoint: https://api.veradata.dev/mcp
  • TensorBlock MCP Index: https://tensorblock.co/mcp/servers/api-veradata-dev-69a345fc
  • Listed: TensorBlock/awesome-mcp-servers, ClawHub
  • Sanctions coverage: 59,454 entries — OFAC SDN + UN Consolidated + EU Consolidated + UK HM Treasury
  • Compliance: EU AI Act Art.12/13, FATF R16, SARLAFT 2024, ERC-8299
  • Trial: X-TRIAL: true header — no wallet required for testing

Pricing

Endpoint Price
/sanctions/quick $0.01 USDC (OFAC-only)
/sanctions $0.05 USDC (full 59k+ entries)
/solutions/kyb-complete-{co,mx,br,cl,pe} $0.15 USDC (registry + sanctions + narrative)
/rates $0.02 USDC (central bank rates)

Docs: https://api.veradata.dev/llms.txt
OpenAPI: https://api.veradata.dev/openapi.json
Demo: https://api.veradata.dev/demo

Ngôn ngữ chính
TypeScript
Star
1.3k
Fork
889
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của coinbase/agentkit

Tất cả issue của coinbase/agentkit

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.