The layer to pay
Pay any API in USDC, rate any agent on‑chain, settle on Avalanche in ~1–2 seconds. All in 3 lines of code.
One core, many surfaces.
All on Avalanche.
x402 Payment Protocol
Any HTTP endpoint returns 402 Payment Required with a USDC price. Consumers auto-pay with a signed EIP-3009 transfer. A non-custodial facilitator settles on Avalanche C-Chain.
On-chain Reputation (ERC-8004)
Every paid call lets the payer rate the service 1–5 ⭐. Scores are portable, permissionless, and self-feedback-resistant. Agents discover services ranked by reputation.
Gasless Policy Spending
PolicyVault lets owners set on-chain limits — maxPerCall, dailyCap, totalBudget, expiry, allowlist — and grant session keys. Agents sign spends gaslessly; over-cap reverts on-chain.
Cross-L1 Hiring via ICM
An agent on one Avalanche L1 can hire a service on another via Teleporter — no bridges, no wrapped tokens. Truly cross-chain agent collaboration.
Three lines.
Infinite possibilities.
1import { ChainPe } from '@chainpeavax/sdk'23const cp = new ChainPe({4 privateKey: process.env.KEY!,5 network: 'avalanche'6})
Avalanche-native
by design.
Sub-cent settlement, ~1–2s deterministic finality, and native Circle USDC make pay-per-request economics real. Plus cross-L1 hiring over ICM/Teleporter.
Built to prove
it works.
Works with everything
you already use.
Drop-in tools for Vercel AI SDK, LangChain, Claude MCP, and any HTTP client.
Trust is
non-negotiable.
Non-custodial by design. On-chain spending caps. Self-feedback-resistant reputation. Every layer is built for trustless agent interactions.
Non-custodial Settlement
The facilitator never holds funds. Payers sign EIP-3009 authorizations; the facilitator submits and pays gas.
On-chain Spending Caps
PolicyVault enforces maxPerCall, dailyCap, totalBudget, and expiry limits on-chain. Overspends revert.
Self-feedback Resistant
ERC-8004 blocks self-rating on-chain. Reputation only accrues from real counterparties.
36 Audit Findings Fixed
Full security audit completed — 3 Critical, 12 High, 11 Medium, 10 Low. All resolved and verified.
Built for devs.
By a dev.
A thoughtfully designed SDK that gets out of your way. Three lines to payments. Published on npm. Works with any HTTP client.
TypeScript native
Full type safety with auto-generated types.
Drop-in fetch
cp.fetch works like native fetch with auto-pay.
AI framework tools
Vercel AI SDK + LangChain integrations.
Published on npm
@chainpeavax/sdk, ai-tools, cli.
npm install @chainpeavax/sdk# oryarn add @chainpeavax/sdkpnpm add @chainpeavax/sdk
\"ChainPe makes it trivially easy to monetize any API for AI agents. Three lines of code and you're live on Avalanche.\"
SDK User
AI Developer, Agent Economy
3-line integration
Powered by the Avalanche ecosystem
Pay per request.
No subscriptions.
No subscriptions and no per-request platform fee. Agents pay providers directly in USDC.
Agents
For anyone calling paid APIs
- Pay only the listed price, in USDC
- Settlement gas paid by the facilitator
- No AVAX needed to pay
- Spending caps in the SDK, MCP wallet and PolicyVault
- Rate services on-chain (ERC-8004)
Providers
List an API on Avalanche mainnet
- Listed in the on-chain ChainPeRegistry
- ERC-8004 identity for your service
- USDC paid straight to your wallet
- Hosted facilitator settles each call
- Provider dashboard for revenue and reputation
Self-Hosted
Run your own infrastructure
- Run your own x402 facilitator
- Host your own indexer
- Direct smart contract access
- Self-managed RPC endpoints
Settlement gas (~$0.003 per settlement, estimated at 1 gwei) is paid by the hosted facilitator. Registering or updating a service costs a little AVAX gas. Read the FAQ
Ready to monetize
your agents?
Join the Avalanche agent economy. One SDK, three lines of code, sub-cent settlement.
npm install @chainpeavax/sdk