Repository navigation
Releases: MeshJS/mesh-x402
Releases · MeshJS/mesh-x402
Release list
v0.0.1
x402
First release of Cardano x402 payments. A server answers 402, the client signs, a facilitator submits, and the content unlocks.
npm install @meshsdk/x402What this version includes
- Client:
fetchWithPaymentpays a402and retries withPAYMENT-SIGNATURE - Server:
createPaywallplusbuildDefaultOffer,buildScriptOffer, andbuildMasumiOffer - Facilitator:
createFacilitatorAppverifies, submits once, and waits for confirmations
Payment methods
default— pay a wallet address; after settle, the funds are yoursscript— lock into a Plutus script you choose; you spend it yourselfmasumi— lock into Masumivested_payescrow; later spends for result, refund, and dispute
Masumi withdrawal
buildSubmitResultTx, buildWithdrawTx, buildAuthorizeRefundTx, buildSetRefundRequestedTx, buildAuthorizeWithdrawalTx, buildWithdrawRefundTx, and buildWithdrawDisputedTx
Docs: meshjs.dev/apis/x402