Quickstart

Buyer Entry#

Buyers are the side consuming paid services. Onchain OS Payment offers an out-of-the-box buyer integration — at its core, you configure Agentic Wallet for your Agent so it can auto-detect payment requests and sign them.


Pick your integration path#


What can a Buyer do?#

Whichever Seller form you're dealing with, the Buyer wallet handles it transparently:

Seller formTransportHow the Buyer detects the payment request
HTTP SellerPublic APICalling the paid endpoint returns HTTP 402 + Challenge
Agent SellerMessaging channel (XMTP / Telegram)Receives a payment URL

Protocol-data semantics are identical across both transports (see Challenge / Credential); the same wallet handles both kinds of payment requests.


Shared prerequisites#

  • Agentic Wallet: Buyer must use Agentic Wallet to support Session Key authorization (required for Batch payment; any EVM wallet works for other scenarios)
  • On-chain balance: Sufficient USDG / USD₮0 balance on X Layer
  • Gas: With USDG / USD₮0, you get the Gas Subsidy — no OKB balance needed

Next#