x402 payment infrastructure for Avalanche

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.

~1–2ssettlement finalityAVALANCHE
$0.0003cost per transactionC-CHAIN
44contract tests passingHARDHAT
3 linesto integrate paymentsSDK
~1–2ssettlement finalityAVALANCHE
$0.0003cost per transactionC-CHAIN
44contract tests passingHARDHAT
3 linesto integrate paymentsSDK
Capabilities

One core, many surfaces.
All on Avalanche.

01

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.

02

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.

03

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.

AB
04

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.

Process

Three lines.
Infinite possibilities.

chainpe.ts
1import { ChainPe } from '@chainpeavax/sdk'
2
3const cp = new ChainPe({
4  privateKey: process.env.KEY!,
5  network: 'avalanche'
6})
Ready — Avalanche Mainnet
Infrastructure

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.

~$0.003
Est. gas per settlement
~1–2s
Finality
44
Contract tests
StackAvalanche mainnet
Avalanche C-Chain
Settlement and on-chain registries
mainnet
Circle USDC
EIP-3009 transferWithAuthorization
native
ERC-8004 registries
Identity · Reputation · Validation
on-chain
x402 facilitator
Verifies, settles, pays the gas
Railway
chainpe-cloud
Indexer and provider dashboard
Railway
ICM / Teleporter
Cross-L1 sender and receiver contracts
contracts
By the numbers

Built to prove
it works.

Live on Mainnet|3:46:26 PM
0
Contract tests passing
0 USDC
One-time fee to list a service
0
Lines to integrate payments
0
Surfaces powered by one core
Ecosystem

Works with everything
you already use.

Drop-in tools for Vercel AI SDK, LangChain, Claude MCP, and any HTTP client.

Vercel AI SDK
AI Framework
LangChain
AI Framework
Claude MCP
AI Assistant
Avalanche C-Chain
Blockchain
USDC (Circle)
Stablecoin
EIP-3009
Payment Standard
ERC-8004
Reputation
ICM/Teleporter
Cross-L1
MetaMask
Wallet
Hardhat
Development
Railway
Hosting
PostgreSQL
Database
Vercel AI SDK
AI Framework
LangChain
AI Framework
Claude MCP
AI Assistant
Avalanche C-Chain
Blockchain
USDC (Circle)
Stablecoin
EIP-3009
Payment Standard
ERC-8004
Reputation
ICM/Teleporter
Cross-L1
MetaMask
Wallet
Hardhat
Development
Railway
Hosting
PostgreSQL
Database
PostgreSQL
Database
Railway
Hosting
Hardhat
Development
MetaMask
Wallet
ICM/Teleporter
Cross-L1
ERC-8004
Reputation
EIP-3009
Payment Standard
USDC (Circle)
Stablecoin
Avalanche C-Chain
Blockchain
Claude MCP
AI Assistant
LangChain
AI Framework
Vercel AI SDK
AI Framework
PostgreSQL
Database
Railway
Hosting
Hardhat
Development
MetaMask
Wallet
ICM/Teleporter
Cross-L1
ERC-8004
Reputation
EIP-3009
Payment Standard
USDC (Circle)
Stablecoin
Avalanche C-Chain
Blockchain
Claude MCP
AI Assistant
LangChain
AI Framework
Vercel AI SDK
AI Framework
Security

Trust is
non-negotiable.

Non-custodial by design. On-chain spending caps. Self-feedback-resistant reputation. Every layer is built for trustless agent interactions.

EIP-3009ERC-8004EIP-712UUPSOpenZeppelin

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.

For developers

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
# or
yarn add @chainpeavax/sdk
pnpm add @chainpeavax/sdk
Use cases
01 / 04

\"ChainPe makes it trivially easy to monetize any API for AI agents. Three lines of code and you're live on Avalanche.\"

S

SDK User

AI Developer, Agent Economy

Key Capability

3-line integration

Powered by the Avalanche ecosystem

@chainpeavax/sdk@chainpeavax/ai-tools@chainpeavax/clichainpe-wallet-mcpChainPeRegistryPolicyVaultERC-8004ICM/Teleporter
@chainpeavax/sdk@chainpeavax/ai-tools@chainpeavax/clichainpe-wallet-mcpChainPeRegistryPolicyVaultERC-8004ICM/Teleporter
Pricing

Pay per request.
No subscriptions.

No subscriptions and no per-request platform fee. Agents pay providers directly in USDC.

01

Agents

For anyone calling paid APIs

$0/platform fee
  • 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)
Read the docs
Live on mainnet
02

Providers

List an API on Avalanche mainnet

1 USDC/one-time
  • 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
Open the dashboard
03

Self-Hosted

Run your own infrastructure

Open/source
  • Run your own x402 facilitator
  • Host your own indexer
  • Direct smart contract access
  • Self-managed RPC endpoints
View GitHub

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