The only credential x402 needs is a funded wallet. Here is the minimal setup to start paying for calls.
Pick the rail you want to pay on: an EVM wallet for Base, or a Solana wallet for Solana. A programmatic wallet (a generated keypair you store as an env var) is the typical setup for an agent or backend.
Move a small amount of USDC onto your chosen chain — Base USDC or Solana USDC. A few cents covers thousands of typical 2s calls, and you top up whenever you like. No 2s account is involved; the wallet is the account.
Put the wallet private key in an environment variable (for example EVM_PRIVATE_KEY) and pass it to the SDK. Keep it server-side — never ship a funded key to a browser.
import { TwoS } from '@2sio/sdk'
const client = new TwoS({ privateKey: process.env.EVM_PRIVATE_KEY as `0x${string}` })You can exercise any endpoint with a trial call before funding anything — see the quickstart.
Call a live x402 API right now — no signup.
Browse the full endpoint directory, grab the quickstart, or read the llms.txt manifest. Every endpoint is keyless and pay-per-call.