AsterPay KYA Hook for ERC-8183 Agentic Commerce — sanctions screening + trust score gate before job funding. Live on Base Sepolia.
erc8183-kya-hook is an early-stage Solidity project in the AI payments / x402 ecosystem, focused on agentic-commerce, base, erc-8183, kya. It currently has 1 GitHub stars and 0 forks, and sits alongside related tools like clawtrust-contracts, evaxora8183, x402-proxy, helixa, 1ly-mcp-server, pinion-os.
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.
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 │
└───────────────────────┘
| 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 |
minTrustScore (default: 20 = verified tier)maxScoreAge seconds (default: 3600)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
forge test -vvv
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);
| 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().
| 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 |
MIT (hook contract) / CC0 (interfaces aligned with ERC-8183 and EIP-Agent Trust Score)
Solidity smart contracts for ClawTrust — ERC-8004 identity, ERC-8183 agentic commerce, reputation, escrow, swarm validation on Base.
Evaluator Registry for ERC-8183 Agentic Commerce Protocol on Base
curl for x402 and MPP paid APIs. CLI + MCP proxy that auto-pays any endpoint on Base, Solana, and Tempo. Zero crypto code on the buyer side.
Original Helixa / AgentDNA / Cred implementation and reference materials. New Multipass development: github.com/Bendr-20/multipass.
Enable AI agents to discover, launch tokens, pay for, and sell APIs and resources using x402
🛠 Enable seamless on-chain skill calls with automated x402 micropayments using the Pinion OS SDK and skill server framework.
Client SDK, Claude plugin and skill framework for the Pinion protocol. x402 micropayments on Base.
Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.
Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.
Turn any API or MCP server into a paid service with x402
Public adapters and discovery catalog for Triptych OS (Agent OS): agent frameworks, MCP/A2A/x402 protocols, workflows, wallets, SDKs, and examples for execute-first routing, governed handoffs, and receipt-aware agent commerce.
A wallet for agents. Make payments via x402, use stablecoins, swap assets, earn yield with defi and buy tokenized stocks across the most popular chains.