x402 v2Base eip155:8453USDCcaller controls spend

Charge an AI agent per accepted API call.

ScriptMasterLabs uses a simple rule: fetch the fresh HTTP 402 challenge, verify the terms, apply the caller's spending policy, then pay only when authorized. Cached wallet or payment instructions are not authority.

Canonical SML payment identity

network: eip155:8453
asset:   0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
symbol:  USDC
payTo:   0x5bbd32e0478e49a7540ef2d760e0b0f9aa6328b2

402 response: PAYMENT-REQUIRED
paid retry:   PAYMENT-SIGNATURE
success:      PAYMENT-RESPONSE

The exact amount and resource must come from the target's fresh challenge. A 402 challenge is not settlement proof.

Buyer flow

  1. Call the target API without payment.
  2. Require HTTP 402 and inspect PAYMENT-REQUIRED.
  3. Verify network, Base USDC asset, payTo, resource, and amount.
  4. Apply your own spending policy. ScriptMasterLabs does not auto-authorize spending for the caller.
  5. If authorized, retry with PAYMENT-SIGNATURE.
  6. Accept payment as complete only from successful settlement/delivery evidence and PAYMENT-RESPONSE.

Try before paying

Start with machine-readable discovery and a no-spend 402 challenge. Agent Web Access is the simplest paid example: public URL → clean Markdown.

Truth boundary

ScriptMasterLabs does not treat crawler hits, owner tests, bootstrap traffic, validators, signatures, or a 402 challenge as a stranger purchase. Settlement and accepted delivery are the evidence that count.

SCRIPTMASTERLABS · READ · EXPLORE · VERIFY · EARN

Books, free tools, sources & affiliate opportunities