x402 Payments on GOAT Network
x402 is the payment rail for apps, APIs, and agents that want machine-readable monetization on top of GOAT Network. It turns HTTP 402 Payment Required into a practical workflow for charging, authorizing, settling, and delivering protected responses.
Within GOAT Network, x402 is part of the broader Digital Economy infrastructure stack:
- Settlement-aware payments for apps and APIs
- Monetization rails for autonomous agents
- Payment-triggered business logic for advanced callback flows (via the DELEGATE mode, available on request)
- Composable pairing with trust layers such as ERC-8004
If you are using x402 through AgentKit, start with the AgentKit x402 payments guide. This page remains the protocol and integration overview.
Why x402 Matters
x402 is a good fit when you need:
- paid API routes without API-key-only gating
- usage-based charging for apps or services
- machine-speed payments for agents
- callback-enabled settlement flows that can trigger on-chain logic (via the DELEGATE mode, available on request)
It is less useful when you only need offchain subscriptions or a simple donation address with no delivery logic.
Where x402 Fits in GOAT Network
Payment Flow
Supported Modes
| Mode | Best for | Core property |
|---|---|---|
DIRECT (standard) | Hosted QuickPay, simple payment-gated APIs, and content | QuickPay can run without merchant API keys; programmatic x402 uses merchant API keys, and merchant-side Machine Payments Protocol (MPP) setup is configured in the merchant portal |
DELEGATE (available on request) | payment-triggered on-chain execution, such as minting or staking | disabled by default — contact the platform to enable, subject to an eligibility and compliance review; requires API keys and a Bob-authorized MerchantCallback; not available through QuickPay or MPP |
Supported Chains
The exact set of enabled EVM chains is per-environment backend configuration — receiving chains are served by the merchant-portal endpoint /merchant/v1/supported-tokens and MPP chains by /merchant/v1/mpp/supported-chains. The supported mainnet networks:
| Network | Chain ID | Explorer |
|---|---|---|
| GOAT Network | 2345 | explorer.goat.network |
| Ethereum | 1 | etherscan.io |
| Polygon | 137 | polygonscan.com |
| BSC | 56 | bscscan.com |
| Arbitrum | 42161 | arbiscan.io |
| Optimism | 10 | optimistic.etherscan.io |
| Avalanche | 43114 | snowtrace.io |
| Base | 8453 | basescan.org |
| Berachain | 80094 | berascan.com |
| X Layer | 196 | web3.okx.com/explorer/x-layer/evm |
| Metis | 1088 | andromeda-explorer.metis.io |
| Tempo | 4217 | explore.tempo.xyz |
Payment-mode availability follows the per-environment configuration above. DIRECT is the standard mode wherever a network is enabled; DELEGATE is a separate mode enabled per merchant on request, and it also depends on per-chain support — so it is not available everywhere (for example, it is currently disabled on Tempo, where only DIRECT and MPP are available). See Payment Modes. Metis and Tempo have chain-specific transaction handling: Metis signs legacy (type-0) transactions, and Tempo pays gas in the fee token (pathUSD) because it has no native gas token.
MPP paid API routes run on Tempo (4217).
Repository Map
The official x402 repository is organized as follows:
| Package | Purpose |
|---|---|
goatx402-sdk | Frontend SDK for EVM wallet integrations |
goatx402-sdk-server-ts | TypeScript server SDK source (published as goatx402-sdk-server) |
goatx402-sdk-server-go | Go server SDK (github.com/goatnetwork/goatx402-sdk-server) |
goatx402-contract | Callback contract examples and test utilities |
goatx402-demo | End-to-end demo app |
What to Read Next
Developer Quick Start
Get a payment flow working with the fastest integration path.
Payment Modes
Start with the standard DIRECT mode, and see when the request-only DELEGATE mode applies.
API Reference
Use the exact auth model, endpoints, order states, and error semantics.
Merchant Onboarding
Set up merchant configuration, receiving addresses, credentials, and go-live checks.
FAQ
Review the most common implementation, trust, and user-experience questions.
References
- GOAT x402 GitHub Repository
- README
- Demo App README
- Contract README
- Contract Quick Start
- Merchant Callback Notes