x402 API

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

Thirdweb Integration

Hyperagent uses Thirdweb as a third-party service provider for x402 payment processing. All payment endpoints integrate with Thirdweb's infrastructure to handle transactions on Avalanche networks.

Overview

The x402 API provides endpoints for managing pay-per-use payments for smart contract operations. These endpoints handle payment processing, spending controls, and analytics through Thirdweb integration.

Thirdweb Integration

All x402 endpoints use Thirdweb as the payment service provider. Thirdweb handles:

  • Payment processing on Avalanche networks
  • USDC token transfers
  • Transaction verification and confirmation
  • Wallet connection and authentication

To use x402 endpoints, you need to configure your Thirdweb client ID in the environment variables. See the x402 Integration Guide for setup instructions.

Endpoints

The x402 API includes endpoints for workflows, contracts, deployments, spending controls, and analytics. All endpoints require Thirdweb authentication and work with Avalanche networks.