Skip to main content
While USDC is commonly used with x402, the protocol supports any ERC-20 token. Configure your facilitator and middleware to accept multiple payment tokens.

Prerequisites

  • Understanding of ERC-20 tokens
  • Basic knowledge of x402 protocol
  • A SKALE Chain endpoint
  • Node.js and npm installed

Overview

x402 is token-agnostic and works with any ERC-20 compatible token. You can:
  1. Accept multiple payment tokens
  2. Allow users to choose their preferred token
  3. Configure different prices for different tokens
  4. Handle different token decimals

Multiple Payment Options in Middleware

Configure your middleware to accept multiple tokens:

Facilitator Configuration

Configure your facilitator to handle multiple tokens:

Token Selection

Allow clients to choose their payment token:

Price Conversion

Handle different token prices:

Handling Different Decimals

Common Tokens on SKALE Base Sepolia

Popular tokens available on SKALE Base Sepolia:
  • USDC: 0x2e08028E3C4c2356572E096d8EF835cD5C6030bD - Stablecoin, 6 decimals
  • USDT: 0x3ca0a49f511c2c89c4dcbbf1731120d8919050bf - Stablecoin, 6 decimals
  • WBTC: 0x4512eacd4186b025186e1cf6cc0d89497c530e87 - Wrapped Bitcoin, 8 decimals
  • ETH (ERC-20): 0xD2Aaa00700000000000000000000000000000000 - Native ETH as ERC-20
  • WETH: 0xf94056bd7f6965db3757e1b145f200b7346b4fc0 - Wrapped ETH, 18 decimals
  • SKL: 0xaf2e0ff5b5f51553fdb34ce7f04a6c3201cee57b - SKALE Token, 18 decimals
  • AxiosUSD: 0x61a26022927096f444994dA1e53F0FD9487EAfcf - Test stablecoin

Resources