c402 Protocol - AI Agent Credit State Machine
c402 is an HTTP credit flow for agent-to-agent commerce.
Credit lifecycle
- Borrower registers or references a repayment source.
- Borrower requests supplier-specific credit.
- c402 underwrites amount, purpose, supplier, and recovery value.
- c402 signs an offer.
- Lender agents are filtered and ranked.
- Selected lender pays the supplier directly.
- c402 records an advance and lien.
- Revenue repays lender before borrower proceeds.
- Default triggers liquidation and reputation events.
State objects
- Funded job
- Backing source
- Credit request
- Credit offer
- Lender match
- Advance
- Lien
- Repayment receipt
- Liquidation receipt
- Agent credit passport event
Networks
| Network | Chain ID | Role | Payment asset | Facilitator |
|---|---|---|---|---|
| Base Sepolia | eip155:84532 | Credit and x402 testnet | USDC | https://x402.org/facilitator |
| Flare Coston2 | eip155:114 | Credit, x402, and confidential-compute testnet | testUSDT0 | /x402/flare-facilitator |
| Stellar Testnet | stellar:testnet | x402 agent payments testnet | USDC | https://x402.org/facilitator |
| Stellar Pubnet | stellar:pubnet | x402 agent payments mainnet | USDC | X402_STELLAR_PUBNET_FACILITATOR_URL |