Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

x402-stakefy-sdk

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

x402-stakefy-sdk

The most feature-rich x402 payment SDK for Solana - 10x lower fees (0.1%), social payments, session budgets, payment channels, React hooks, and Express middleware

latest
Source
npmnpm
Version
3.0.1
Version published
Weekly downloads
1
-95.65%
Maintainers
1
Weekly downloads
 
Created
Source

x402-stakefy-sdk

npm version npm downloads License: MIT

The only x402 SDK with enterprise features, cryptographic receipts, and 90% lower fees than competitors.

🚀 Live Demo · 📖 GitHub · �� 6 Examples

🔥 Why Stakefy Beats PayAI

FeatureStakefyPayAI
Fees0.1%1-2%
Receipt Verification✅ SHA-256
Enterprise Features✅ Full
Social PaymentspayToX()
Budget Presets✅ 4 types
Solana Primitives✅ Escrow, Drift
Live Examples✅ 6 apps

Full Comparison →

⚡ Quick Start

npm install x402-stakefy-sdk@3.0.0

Basic Payment

import { StakefyX402Client } from 'x402-stakefy-sdk';

const client = new StakefyX402Client({
  apiUrl: 'https://stakefy-x402-production.up.railway.app',
  network: 'mainnet-beta'
});

const payment = await client.createPayment({
  amount: 0.1,
  merchantId: 'YOUR_WALLET',
  reference: 'order-123'
});

Social Payments

import { payToX } from 'x402-stakefy-sdk';

// Pay by username!
await payToX(client, '@creator', 0.25);

Budget Presets

import { oneShot, perMinute, perMonth } from 'x402-stakefy-sdk';

await oneShot(client, merchant, user, 100, 0.01);  // 100 payments
await perMinute(client, merchant, user, 0.1, 60);  // $0.10/min
await perMonth(client, merchant, user, 9.99);      // $9.99/month

🏢 NEW: Enterprise Features

import { createEnterpriseClient } from 'x402-stakefy-sdk';

const enterprise = createEnterpriseClient(API_URL);

// Organization badges
const badge = await enterprise.getOrgBadge('org-123');

// Usage quotas
const quota = await enterprise.getQuota('org-123', 'project');

// Analytics
const metrics = await enterprise.getMetrics('org-123', 'project', 'month');

// Invoices
const invoice = await enterprise.generateInvoice('org-123', '2024-10', receipts);

Enterprise Docs →

🔐 NEW: Receipt Verification

import { verifyReceipt, verifySession } from 'x402-stakefy-sdk';

// Cryptographic proof with SHA-256
const receipt = await verifyReceipt({
  signature: 'TX_SIG',
  expectedAmount: 0.1,
  expectedMerchant: 'WALLET'
}, connection);

console.log(receipt.proof);     // SHA-256 hash
console.log(receipt.verified);  // true

Receipt Spec →

🚀 NEW: Solana Primitives

Fast Escrow

import { FastEscrow } from 'x402-stakefy-sdk';

const escrow = new FastEscrow(connection);
await escrow.create({ buyer, seller, amount: 10, timeout: 3600 });
await escrow.release(escrowId);

Partial Settlement

import { PartialSettler } from 'x402-stakefy-sdk';

const settler = new PartialSettler();
await settler.settle({ channelId, amount: 1.0, nonce: 1, merchant });

Drift Protocol

import { DriftX402 } from 'x402-stakefy-sdk';

const drift = new DriftX402('MERCHANT', 0.01);
const trade = await drift.trade({ market: 'SOL-PERP', side: 'long', size: 1, leverage: 10 });

🎮 6 Live Examples

Copy-paste ready applications:

View All Examples →

📦 What's Included

// Core
import { StakefyX402Client, payToX, oneShot, perMinute, perMonth } from 'x402-stakefy-sdk';

// Enterprise
import { createEnterpriseClient, OrganizationBadge, UsageQuota } from 'x402-stakefy-sdk';

// Receipts
import { verifyReceipt, verifySession, PaymentReceipt } from 'x402-stakefy-sdk';

// Solana Primitives
import { FastEscrow, PartialSettler, DriftX402 } from 'x402-stakefy-sdk';

// React
import { PaymentButton, Paywall, usePayment } from 'x402-stakefy-sdk';

// Express
import { stakefyPaywall, stakefyBudget } from 'x402-stakefy-sdk';

💰 Pricing Comparison

Monthly VolumeStakefy (0.1%)PayAI (1-2%)You Save
$10,000$10$100-200$1,080-2,280/year
$100,000$100$1,000-2,000$10,800-22,800/year

📖 Documentation

🎯 What's New in v3.0.0

✅ Enterprise features (badges, quotas, analytics, invoices)
✅ Receipt verification (SHA-256 cryptographic proofs)
✅ Budget presets (oneShot, perMinute, perMonth, nonceOnce)
✅ Social payments (payToX)
✅ Fast escrow for secure transactions
✅ Partial settlement for streaming payments
✅ Drift Protocol integration
✅ 6 production-ready examples

💬 Support

📄 License

MIT © Stakefy Team

The only x402 SDK built for enterprises. 90% lower fees. 10x more features.

PayAI doesn't have receipts, enterprise features, or our Solana primitives. See why →

Keywords

x402

FAQs

Package last updated on 03 Nov 2025

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