The trust layer for AI agent payments. 8 security checks. Trust Score 0-100. Fiat in seconds.
AsterPay is The Trust Layer for AI Agent Payments. Every payment passes through 8 security checks: agent identity verification (ERC-8004), sanctions screening (Chainalysis), Trust Score computation, and fiat settlement (EUR/GBP/USD via SEPA Instant). MiCA-compliant. x402 + x402r (escrow/refunds) + AP2 protocol support.
5 layers: Verify → Screen → Score → Settle → Comply
Get started in under 2 minutes. The Trust Score API is free — no signup needed.
# Check any agent wallet — no API key, no payment
curl https://x402.asterpay.io/v1/agent/trust-score/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
# Response:
# { "trustScore": 34, "tier": "verified", "maxPerTx": 1000, ... }
Sign up at app.asterpay.io and create a sandbox API key from the dashboard.
Use the built-in API Playground to make test requests instantly — no code required.
# The x402 flow: request → 402 → pay USDC → retry → 200
# Step 1: Request a paid endpoint (returns 402 + payment requirements)
curl https://x402.asterpay.io/v1/market/price/bitcoin
# Step 2: Use @x402/fetch to handle payment automatically
npm install @x402/fetch
When you're ready to receive EUR, submit a KYB application from the dashboard. Approval enables stablecoin → fiat settlement to your bank account.
The x402 payment flow:
402 Payment Required + payment details (USDC amount, address)transferWithAuthorization on BasePAYMENT-SIGNATURE header200 with dataTrust-to-Refund Pipeline:
AsterPay's x402r integration adds on-chain escrow and automated refunds to x402 payments. The agent's KYA Trust Score determines the payment scheme:
exact scheme — direct payment, instant settlement, no escrowcommerce scheme — funds held in on-chain escrowProtocol: x402r.org — SDK: @x402r/sdk
/v1/agent/trust-score/:address
FREE
Full agent trust assessment. Returns Trust Score (0-100), tier, breakdown of 7 components, ERC-8004 identity check, sanctions screening, and wallet analysis.
/v1/agent/verify/:address
FREE
Quick ERC-8004 identity check. Returns whether the agent is registered in the on-chain identity registry on Base.
/v1/agent/tier/:address
FREE
Fast tier lookup. Returns agent tier (open/verified/trusted/enterprise) and transaction limits.
/v1/agent/trust-score/batch
FREE
Batch trust assessment for up to 10 agent addresses at once.
/v1/agent/framework
FREE
Returns the full KYA framework documentation: layers, tiers, score components, and premium endpoints.
/v1/agent/audit/:address
FREE
KYA audit snapshot. Returns raw inputs and score breakdown for third-party verification and compliance auditing.
/v1/agent/discovery
FREE
Service discovery endpoint. Lists all available endpoints, payment methods (x402, MPP), and settlement capabilities.
/v1/agent/deep-analysis/:address
$0.01
Behavioral intelligence: velocity scoring, consistency analysis, funding source risk, actionable recommendations (allow/limit/review/block), and comparative percentile ranking.
/v1/agent/deep-analysis/batch
$0.05
Batch deep analysis for up to 10 agents. Includes all behavioral signals and recommendations.
/v1/market/price/:symbol
$0.005
Get current price, 24h change, market cap, and volume for any crypto asset.
/v1/market/ohlcv/:symbol
$0.01
OHLCV candle data (1–90 days). Symbols: BTC, ETH, SOL, USDC, and 20+ more.
/v1/market/trending
$0.005
Trending coins with price, rank, and 24h change.
/v1/ai/summarize
$0.004
AI-powered text summarization.
/v1/ai/sentiment
$0.004
Sentiment analysis on any text.
/v1/ai/translate
$0.02
AI translation between languages.
/v1/ai/code-review
$0.05
Automated code review with suggestions.
/v1/crypto/wallet-score/:address
$0.05
On-chain wallet reputation score.
/v1/crypto/token-analysis/:address
$0.10
Deep token analysis with holder data and risk assessment.
/v1/crypto/whale-alerts
$0.02
Real-time large transaction alerts.
/v1/util/qr-code
FREE
Generate QR codes from any data. Free gateway endpoint.
/v1/util/screenshot
$0.02
Capture a screenshot of any URL.
/v1/util/pdf-generate
$0.03
Generate PDF documents from HTML/data.
/v1/settlement/estimate
FREE
Get a real-time USDC → EUR conversion estimate.
/v1/settlement/quote
FREE
Get a settlement quote with fees and delivery time.
/v2/x402/verify
Verify an x402 payment payload.
/v2/x402/settle
Settle an x402 payment on-chain.
/v2/x402/supported
FREE
List supported payment schemes and networks.
/v1/x402r/status
FREE
x402r operator configuration, escrow parameters, and Trust-to-Scheme routing rules. Shows whether escrow-protected payments are active.
/v1/x402r/scheme/:address
FREE
Determine which payment scheme an agent qualifies for based on KYA trust score. Score ≥ 70 → direct payment (exact). Score < 70 → escrow-protected (commerce, refundable).
/v1/x402r/arbiter/verify
FREE
Automated delivery verification endpoint. Called after settlement to verify API response validity. KYA engine acts as arbiter — no human needed.
/v1/x402r/refunds/:hash
FREE
Check refund status by payment hash. Returns escrow state, approved amount, and dispute resolution status.
/v1/x402r/info
FREE
x402r protocol information and integration guide. SDK links, arbiter details, and trust-to-scheme documentation.
/discovery/resources
FREE
x402 Bazaar resource discovery (ERC-8004 compatible).
/health
FREE
Health check.
/docs
FREE
Interactive Swagger API documentation.
All paid endpoints use the x402 protocol. No API key needed — payment is the authentication. Your client signs a USDC transaction and includes it in the request header.
Create API keys in the dashboard to track usage, set rate limits, and view analytics.
curl -H "Authorization: Bearer sk_sand_your_key" \
https://x402.asterpay.io/v1/market/price/bitcoin
| Key Prefix | Environment | Description |
|---|---|---|
sk_sand_ | Sandbox | Testing, no real payments |
sk_live_ | Production | Real USDC payments + EUR settlement |
| Chain | Stablecoins | Status |
|---|---|---|
| Base | USDC, EURC | ✅ Primary |
| Base Sepolia | USDC | ✅ Testnet |
| Ethereum | USDC, EURC, EURCV | ✅ Supported |
| Polygon | USDC | ✅ Supported |
| Solana | USDC | ✅ Supported |
| XRPL | EURCV | ✅ Supported |
| BNB Chain | USDC | 🚧 Q2 2026 |
| Monad | USDC | 🚧 Roadmap |
AsterPay converts your stablecoin earnings to fiat and sends them to your bank account.
Every agent that interacts with AsterPay receives a Trust Score (0-100) based on 8 security checks:
| Component | Max Points | Source |
|---|---|---|
| Wallet Age | 15 | On-chain (first tx) |
| Wallet Activity | 15 | Transaction count |
| Sanctions Screening | 20 | Chainalysis Oracle (OFAC/EU/UN) |
| Agent Identity | 20 | ERC-8004 on-chain registry |
| Operator KYB | 20 | Off-chain verification |
| Payment History | 5 | AsterPay track record |
| Trust Bond | 5 | Staked collateral |
Scores map to access tiers:
| Tier | Score | Max Per Tx | Max Daily |
|---|---|---|---|
| Open | 0–19 | $1 | $10 |
| Verified | 20–49 | $1,000 | $5,000 |
| Trusted | 50–79 | $10,000 | $50,000 |
| Enterprise | 80–100 | Unlimited | Unlimited |
x402 protocol client with AI Agent Wallet and LangChain integration.
# Install
npm install @asterpay/x402
# Usage
import { createX402Client, createAgentWallet } from '@asterpay/x402';
const wallet = createAgentWallet({
privateKey: process.env.AGENT_KEY,
network: 'base',
spendingLimits: { daily: 10 }
});
const client = createX402Client({ wallet });
const response = await client.fetch('https://x402.asterpay.io/v1/market/price/bitcoin');
Full Python SDK with async support. CrewAI and LangChain integrations included.
# Install
pip install asterpay
# Usage
from asterpay import AsterPay
client = AsterPay(api_key="sk_live_...")
score = client.discovery.trust_score("0xd8dA...96045")
print(score.trust_score, score.tier) # 34, "verified"
# Async
import asyncio
from asterpay import AsyncAsterPay
async def main():
client = AsyncAsterPay(api_key="sk_live_...")
price = await client.market.get_price("bitcoin")
print(price)
Payment tools for OpenAI Agents SDK — give your AI agents the ability to pay.
# Install
pip install asterpay-openai-agents
# Usage
from agents import Agent
from asterpay_agents import get_asterpay_tools, AsterPayWallet
wallet = AsterPayWallet(
private_key=os.environ["AGENT_KEY"],
network="base",
daily_limit=10.0
)
agent = Agent(
name="Shopping Assistant",
tools=get_asterpay_tools(wallet)
)
Scan your TypeScript project for AI SDK imports, run compliance signal checks, and generate EU AI Act documentation. August 2, 2026 deadline.
# Zero install — try now
npx @asterpay/attest scan
# Check compliance signals
npx @asterpay/attest check
# Generate Annex IV docs
npx @asterpay/attest docs -o ./compliance
AsterPay's MCP server includes two tools for the x402 "virus machine" pattern — payment rails that propagate automatically between agents:
Before paying another agent, call agent_pay to verify they're not sanctioned and check their trust tier. Returns payment instructions if safe, blocks if sanctioned.
# Via MCP: agent checks trust before sending USDC
# → Returns: trust score, sanctions status, payment instructions
# → Blocks sanctioned addresses automatically
# → Recommends escrow for low-trust agents (score < 30)
Returns AsterPay's payment rail as a JSON-LD document. Install this rail to pay any AsterPay-connected agent, then forward it to every agent you interact with.
# Returns JSON-LD payment rail with:
{
"@context": { "x402": "https://x402.org/schema/" },
"x402:signatureScheme": "ECDSA-SHA256",
"x402:supportedNetworks": ["Base", "Ethereum", "Polygon", ...],
"asterpay:trustScoring": { "scoreRange": "0-100" },
"asterpay:settlement": { "currencies": ["EUR", "USD", "GBP"] }
}
Discovery: .well-known/x402.json (JSON-LD) · Signature: ECDSA-SHA256
# Get full trust assessment for any wallet
curl https://x402.asterpay.io/v1/agent/trust-score/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
# Quick tier check
curl https://x402.asterpay.io/v1/agent/tier/0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
# Batch check 10 agents at once
curl -X POST https://x402.asterpay.io/v1/agent/trust-score/batch \
-H "Content-Type: application/json" \
-d '{"addresses": ["0xd8dA...", "0xABC..."]}'
from asterpay import AsterPay
client = AsterPay()
result = client.discovery.trust_score("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045")
if result.tier in ("trusted", "enterprise"):
process_payment(result.wallet)
elif result.screening.sanctioned:
block_wallet(result.wallet)
else:
require_additional_verification(result.wallet)
import { fetchWithPayment } from '@x402/fetch';
const response = await fetchWithPayment(
'https://x402.asterpay.io/v1/ai/summarize',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ text: 'Your text here...' })
},
wallet
);
import requests
# Free endpoint (no payment needed)
r = requests.get("https://x402.asterpay.io/v1/settlement/estimate",
params={"amount": "100"})
print(r.json()) # { "eur": "92.50", "rate": 0.925, ... }
curl https://x402.asterpay.io/v2/x402/supported
Configure webhooks in the dashboard to receive real-time notifications.
// Webhook payload example
{
"event": "settlement.completed",
"transaction_id": "txn_abc123",
"amount_usdc": "100.00",
"amount_eur": "92.50",
"status": "settled",
"sepa_reference": "ASTER-2026-0213"
}
The AsterPay Dashboard gives you full control:
We're here to help you integrate fast.