New:Socket for Asana Is Now Available.Learn more
Get Started

@t2000/sui-x402

Package Overview
Dependencies
Maintainers
1
Versions
56
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.

Source
npmnpm
Version
11.1.4
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 28 Aug 2026

Related posts