x402 Payments

Pay-per-use payment system for smart contract operations on Avalanche networks.

Overview

x402 enables pay-per-use smart contract operations. Users pay only for what they use, making blockchain development more accessible and cost-effective.

Payment Model

x402 payments work on Avalanche networks using USDC. Each operation (generation, audit, deployment) has a cost that is charged automatically.

Thirdweb Integration

Thirdweb Payment Provider

Hyperagent uses Thirdweb as a third-party service for processing x402 payments. Thirdweb handles wallet connections, payment transactions, and USDC transfers on Avalanche networks.

Thirdweb provides the infrastructure for:

  • Secure wallet connections and authentication
  • USDC token transfers on Avalanche networks
  • Transaction processing and confirmation
  • Payment verification and receipt generation

To enable x402 payments, configure your Thirdweb client ID in your environment variables. See the x402 Integration Guide for detailed setup instructions.

Spending Controls

Configure spending limits and controls to manage costs:

Daily Limits

Set maximum spending per day

Per-Operation Limits

Limit cost per individual operation

Analytics

Track spending and usage patterns