
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
x402-stakefy-sdk
Advanced tools
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
The only x402 SDK with enterprise features, cryptographic receipts, and 90% lower fees than competitors.
🚀 Live Demo · 📖 GitHub · �� 6 Examples
| Feature | Stakefy | PayAI |
|---|---|---|
| Fees | 0.1% | 1-2% |
| Receipt Verification | ✅ SHA-256 | ❌ |
| Enterprise Features | ✅ Full | ❌ |
| Social Payments | ✅ payToX() | ❌ |
| Budget Presets | ✅ 4 types | ❌ |
| Solana Primitives | ✅ Escrow, Drift | ❌ |
| Live Examples | ✅ 6 apps | ❌ |
npm install x402-stakefy-sdk@3.0.0
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'
});
import { payToX } from 'x402-stakefy-sdk';
// Pay by username!
await payToX(client, '@creator', 0.25);
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
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);
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
import { FastEscrow } from 'x402-stakefy-sdk';
const escrow = new FastEscrow(connection);
await escrow.create({ buyer, seller, amount: 10, timeout: 3600 });
await escrow.release(escrowId);
import { PartialSettler } from 'x402-stakefy-sdk';
const settler = new PartialSettler();
await settler.settle({ channelId, amount: 1.0, nonce: 1, merchant });
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 });
Copy-paste ready applications:
// 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';
| Monthly Volume | Stakefy (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 |
✅ 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
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 →
FAQs
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
The npm package x402-stakefy-sdk receives a total of 0 weekly downloads. As such, x402-stakefy-sdk popularity was classified as not popular.
We found that x402-stakefy-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.