streamable-httpupdated 6mo ago
Know Your Agent (KYA) verification gate for Agentic Commerce jobs.
What can you do with AsterPay β EUR Settlement for AI Agents?
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
| Contract | Purpose |
|---|---|
AsterPayKYAHook.sol |
Main hook β sanctions + trust score gate |
IACPHook.sol |
ERC-8183 hook interface |
IAgenticCommerce.sol |
Read-only ACP job interface |
IAgentTrustScore.sol |
AsterPay trust score oracle interface |
ISanctionsOracle.sol |
Chainalysis oracle interface |
Checks Performed
- Sanctions screening β Chainalysis Oracle on Base (OFAC, EU, UN). Fail-closed if oracle unreachable.
- Trust Score β Agent must have score β₯
minTrustScore(default: 20 = verified tier) - Score freshness β Score must be updated within
maxScoreAgeseconds (default: 3600) - 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
| Parameter | Default | Description |
|---|---|---|
minTrustScore |
20 | Minimum score (0-100). 20 = verified tier |
maxScoreAge |
3600 | Max seconds since last score update |
sanctionsEnabled |
true | Enable Chainalysis screening |
All configurable by contract owner via setMinTrustScore(), setMaxScoreAge(), setSanctionsEnabled().
Events
| Event | When | Use |
|---|---|---|
KYAVerified |
Agent passes all checks | Index verified agents |
KYABlocked |
Agent fails any check | Alert, compliance logging |
ReputationPositive |
Job completed | Feed into ERC-8004 reputation |
ReputationNegative |
Job rejected | Feed into ERC-8004 reputation |
License
MIT (hook contract) / CC0 (interfaces aligned with ERC-8183 and EIP-Agent Trust Score)
Install
Add AsterPay β EUR Settlement for AI Agents to your client. Pick the one you use.
claude mcp add --transport http asterpay-eur-settlement-for-ai-agents https://mcp-api.asterpay.io/mcpcodex mcp add asterpay-eur-settlement-for-ai-agents --url https://mcp-api.asterpay.io/mcp{
"mcpServers": {
"asterpay-eur-settlement-for-ai-agents": {
"url": "https://mcp-api.asterpay.io/mcp"
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"servers": {
"asterpay-eur-settlement-for-ai-agents": {
"type": "http",
"url": "https://mcp-api.asterpay.io/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
{
"mcpServers": {
"asterpay-eur-settlement-for-ai-agents": {
"url": "https://mcp-api.asterpay.io/mcp"
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"asterpay-eur-settlement-for-ai-agents": {
"serverUrl": "https://mcp-api.asterpay.io/mcp"
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
Score
39 / 100
Incomplete
- Documentation18/25
- Maintenance13/25
- Trust9/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 175 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 6 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint β no local install
Version history
| Versions | Published |
|---|---|
| 2.1.0Latest | Jul 4, 2026 |