Concepts Overview
Concepts
This section explains the core technical concepts behind ChainPe. Understanding these helps you reason about trust, security, and how each component relates to the others.
x402 Protocol
The HTTP payment extension that ChainPe builds on. A server returns 402 Payment Required with structured payment requirements; the client signs a USDC authorization and retries. Read more
ERC-8004 Reputation
A proposed Ethereum standard for portable agent identity and reputation. ChainPe implements it so every paid call can build on-chain trust for providers. Self-feedback is blocked by the contract. Read more
Policy Vaults
The PolicyVault.sol contract lets owners set per-call caps, daily limits, total budgets, and allowlists for an agent's spending. The agent signs authorizations off-chain (gaslessly); a relayer submits them. The chain enforces every constraint. Read more
ICM Cross-Chain
Avalanche Interchain Messaging (ICM / Teleporter) enables agents on one Avalanche L1 to hire services on another without bridges. ChainPeICMReceiver receives cross-subnet payment intents. Read more
How the concepts connect
graph LR
Agent["AI Agent\n(@chainpeavax/sdk)"] -->|"cp.fetch(url)"| Proxy["x402 Proxy\n(chainpe start)"]
Proxy -->|"402 → sign → retry"| Agent
Proxy -->|"/settle"| Fac["Facilitator\n(non-custodial)"]
Fac -->|"transferWithAuthorization"| USDC["USDC Contract\n(Avalanche C-Chain)"]
USDC -->|"transfer"| Provider["Provider Wallet"]
Agent -->|"giveFeedback"| Rep["ERC-8004 Reputation\nRegistry"]
Owner["Owner / Operator"] -->|"setPolicy, deposit"| PV["PolicyVault.sol"]
Agent -->|"signSpend"| PV
PV -->|"checked on-chain"| USDC