AsterPay — EUR Settlement for AI Agents

السجل الرسمي الذكاء الاصطناعي والوكلاء

EUR settlement + trust for AI agent commerce: budgets, KYA, merchant discovery. 22 tools.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http asterpay-eur-settlement-for-ai-agents 'https://mcp-api.asterpay.io/mcp'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "asterpay-eur-settlement-for-ai-agents": {
            "type": "http",
            "url": "https://mcp-api.asterpay.io/mcp"
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. AsterPay KYA Hook — ERC-8183 Integration
  2. How It Works
  3. Architecture
  4. Checks Performed
  5. Quick Start
  6. Configuration
  7. Events
  8. License

AsterPay KYA Hook — ERC-8183 Integration

Know Your Agent (KYA) verification gate for Agentic Commerce jobs.

This hook implements the IACPHook interface to enforce AsterPay's 5-layer Trust Framework before AI agents can participate in ERC-8183 commerce jobs.

How It Works

Client creates job with hook = AsterPayKYAHook
                    │
                    ▼
     ┌──── setProvider() ────┐
     │  beforeAction:        │
     │  ✓ Sanctions Oracle   │
     │  ✓ Trust Score ≥ N    │
     │  ✓ Score freshness    │
     └───────────────────────┘
                    │
                    ▼
     ┌──────── fund() ───────┐
     │  beforeAction:        │
     │  ✓ Same KYA checks    │
     │  ✓ Cache result       │
     └───────────────────────┘
                    │
         provider works...
                    │
     ┌─────── complete() ────┐
     │  afterAction:         │
     │  → ReputationPositive │
     └───────────────────────┘

Architecture

ContractPurpose
AsterPayKYAHook.solMain hook — sanctions + trust score gate
IACPHook.solERC-8183 hook interface
IAgenticCommerce.solRead-only ACP job interface
IAgentTrustScore.solAsterPay trust score oracle interface
ISanctionsOracle.solChainalysis oracle interface

Checks Performed

  1. Sanctions screening — Chainalysis Oracle on Base (OFAC, EU, UN). Fail-closed if oracle unreachable.
  2. Trust Score — Agent must have score ≥ minTrustScore (default: 20 = verified tier)
  3. Score freshness — Score must be updated within maxScoreAge seconds (default: 3600)
  4. Tier validation — Agent must not be in "blocked" tier

Quick Start

Deploy
cd contracts/erc8183-kya-hook

# Install Foundry deps
forge install

# Deploy to Base Sepolia
ACP_ADDRESS=0x... \
TRUST_ORACLE_ADDRESS=0x... \
forge script script/Deploy.s.sol:DeployKYAHook \
  --rpc-url base_sepolia --broadcast --verify
Test
forge test -vvv
TypeScript SDK
import { createKYAHookSDK } from './ts-sdk/kya-hook';
import { ethers } from 'ethers';

const provider = new ethers.JsonRpcProvider('https://mainnet.base.org');
const signer = new ethers.Wallet(PRIVATE_KEY, provider);

const sdk = createKYAHookSDK(HOOK_ADDRESS, ACP_ADDRESS, signer);

// Pre-flight check
const result = await sdk.wouldPass('0xAgentWallet...');
console.log(result);
// { passes: true, score: 42, tier: 'verified', sanctionsClear: true }

// Create a KYA-protected job
const jobId = await sdk.createJobWithKYA({
  provider: '0xAgentWallet...',
  evaluator: '0xEvaluator...',
  expiredAt: Math.floor(Date.now() / 1000) + 86400,
  description: 'Translate document EN→FR',
});

// Fund triggers KYA check automatically
await sdk.fundJob(jobId, 100n);

Configuration

ParameterDefaultDescription
minTrustScore20Minimum score (0-100). 20 = verified tier
maxScoreAge3600Max seconds since last score update
sanctionsEnabledtrueEnable Chainalysis screening

All configurable by contract owner via setMinTrustScore(), setMaxScoreAge(), setSanctionsEnabled().

Events

EventWhenUse
KYAVerifiedAgent passes all checksIndex verified agents
KYABlockedAgent fails any checkAlert, compliance logging
ReputationPositiveJob completedFeed into ERC-8004 reputation
ReputationNegativeJob rejectedFeed into ERC-8004 reputation

License

MIT (hook contract) / CC0 (interfaces aligned with ERC-8183 and EIP-Agent Trust Score)

الأسئلة الشائعة

ما هو AsterPay — EUR Settlement for AI Agents؟

EUR settlement + trust for AI agent commerce: budgets, KYA, merchant discovery. 22 tools.

كيف أثبّت AsterPay — EUR Settlement for AI Agents؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http asterpay-eur-settlement-for-ai-agents 'https://mcp-api.asterpay.io/mcp'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج AsterPay — EUR Settlement for AI Agents إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل AsterPay — EUR Settlement for AI Agents مفتوح المصدر؟

شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.

من يصون AsterPay — EUR Settlement for AI Agents؟

ينشره AsterPay. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.