5 minutes

Quickstart

Go from zero to first settlement in under 5 minutes. Four steps.

1

Install the SDK

bash
npm install @shulam/sdk

Also available: pip install shulam or go get github.com/shulam-inc/go-sdk

2

Create a paywall

typescript
import express from "express";
import { createX402Paywall } from "@shulam/sdk/express";

const app = express();

// Protect any endpoint with x402 compliance-verified payments
app.use("/api/premium", createX402Paywall({
  price: 1_000_000n,       // 1 USDC (atomic units)
  payTo: "0xYourWallet",   // Your Base address
  network: "base",         // Base mainnet
}));

app.get("/api/premium/data", (req, res) => {
  // This endpoint requires payment
  res.json({ secret: "compliance-verified data" });
});

app.listen(3000);

The paywall middleware handles x402 verification, OFAC screening, fee calculation, settlement, and receipt generation automatically.

3

Test in sandbox

bash
# Install CLI
npm install -g @shulam/cli

# Screen an address
shulam screen 0x1234...abcd

# Get a settlement quote
shulam quote --from 0xBuyer --to 0xSeller --amount 1000000

# Test settlement (sandbox)
shulam settle --from 0xBuyer --to 0xSeller --amount 1000000 --env sandbox
4

Go live

typescript
// Change one line: sandbox → production
app.use("/api/premium", createX402Paywall({
  price: 1_000_000n,
  payTo: "0xYourWallet",
  network: "base",           // Base mainnet
  facilitator: "api.shulam.io",  // Production facilitator
}));

That's it. Every payment is now OFAC-screened, trust-scored, and compliance-receipted. 5-15 bps fees. <15 second settlement.

What happens under the hood

Verify
JAMES
EIP-3009 signature validation
<100ms
Screen
SAMUEL
OFAC/PEP compliance screening
<200ms
Settle
LEVI
On-chain USDC settlement
<15s
Receipt
BARUCH
EIP-712 compliance receipt
<50ms

Next steps