Sui a402

a402 protocol on Sui is built to empower builders, creators, and people everywhere to build apps, grow businesses, create what they love, and earn onchain.

1

Quick Start

Get up and running with Sui a402 in minutes

Install Package

Add Beep SDK to your project

npm install @beep-it/sdk-core
Click

Configure MCP

Add to Claude Desktop config

{
  "mcpServers": {
    "beep-payments": {
      "command": "node",
      "args": ["/path/to/mcp-server.js"]
    }
  }
}
Click

Start Building

Initialize and create payments

const beep = new BeepClient({ apiKey })
Click

Ready to Go

Start accepting payments

await beep.payments.requestAndPurchaseAsset()
terminal
npm install @beep-it/sdk-core
Ready
Capabilities

Powerful Primitives

Visualizing how Sui a402 protocol handles the heavy lifting of payment logic, verification, and settlement.

HTTP 402 Protocol

Standardized flow: Request → 402 Challenge → Payment → Resource Access

GET
402
PAY
200

Instant Settlement

Payments settle on Sui network in 2-5 seconds with low fees

Settling...0%

Simple Configuration

Define routes, prices, and assets directly in your Express middleware

const payment = await beepClient
.payments.requestAndPurchaseAsset({
assets: [{
assetId: "prod_xxx"
}]
});

Cryptographic Verification

Middleware automatically verifies transaction signatures and validity

Native SUI Support

Accept payments in native SUI coin. Simple, fast, and secure

SUI
USDC

Automated Error Handling

Gracefully handles timeouts, insufficient funds, and network errors

Error: Payment Required