@tentaclepay/sui-x402
v2.1.12
Published
x402 Payment Protocol Sui Implementation
Readme
@tentaclepay/sui-x402
Sui implementation of the x402 payment protocol using the Exact payment scheme.
Installation
npm install @tentaclepay/sui-x402Overview
This package provides three main components for handling x402 payments on Sui-compatible blockchains:
- Client - For applications that need to make payments (have wallets/signers)
- Facilitator - For payment processors that verify and execute on-chain transactions
- Service - For resource servers that accept payments and build payment requirements
Package Exports
Main Package (@tentaclepay/sui-x402)
V2 Protocol Support - Modern x402 protocol with CAIP-2 network identifiers
Client:
ExactSuiClient- V2 client implementation using EIP-3009toClientSuiSigner(keypair)- Converts Sui keypair to x402 signersClientSuiSigner- TypeScript type for client signers
Facilitator:
ExactSuiFacilitator- V2 facilitator for payment verification and settlementtoFacilitatorSuiSigner(wallet)- Converts Sui keypair to facilitator signersFacilitatorSuiSigner- TypeScript type for facilitator signers
Service:
ExactSuiServer- V2 service for building payment requirements
