Sign In

@t2000/sui-x402

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@t2000/sui-x402

The x402 payment dialect for Sui — scheme `exact`, sign-then-settle gasless USDC. Requirements builders, header parse/verify/settle, and the digest replay store shared by @t2000/serve and @t2000/sdk.

latest
Source
npmnpm
Version
10.30.5
Version published
Maintainers
1
Created
Source

@t2000/sui-x402

x402 payment dialect for Sui — scheme exact, sign-then-settle gasless USDC. Used by @t2000/serve (seller) and @t2000/sdk (buyer):

  • RequirementscreateX402Requirements builds the accepts[] entry a 402 advertises (challenge-bound via extra.suimpp — wire field name; see scheme docs).
  • PaymentbuildX402SignedPayment builds + signs the gasless transfer without submitting; the seller settles.
  • Verify + settleverifyX402Payment / settleX402Payment. No-charge-on-failure is structural.
  • Replay storeDigestStore / InMemoryDigestStore.
  • Escrow routingisX402EscrowRequirements / isX402EscrowHeader so instant and escrow flows never cross.
import { createX402Requirements, USDC } from '@t2000/sui-x402';

Wire is stable: scheme exact, X-PAYMENT / X-PAYMENT-RESPONSE, and the extra.suimpp extension bag. Renaming those fields is a protocol bump, not a package rename.

Was briefly named @t2000/x402; the npm name is @t2000/sui-x402 after that name's unpublish tombstone.

MIT © t2000

Keywords

x402

FAQs

Package last updated on 12 Aug 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts