
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@txkit/x402-adapter
Advanced tools
Bridge x402 HTTP payments (Linux Foundation, since 2 Apr 2026) and PreparedTransaction. Attach payment proofs to envelopes; extract payment context from envelopes. Zero React or wagmi deps.
Bridge x402 HTTP payments and @txkit/tx-protocol PreparedEnvelope. Attach payment proofs to envelopes; extract payment context from envelopes.
v0.1.0-alpha - x402 spec is at v0.1, surface may shift.
x402 is an HTTP payment protocol for AI agents (transferred to the Linux Foundation 2 Apr 2026, partners include Google, Microsoft, AWS, Visa, Mastercard, Stripe, Amex, Shopify, Circle, Base, Polygon, Solana). When an agent pays a 402 challenge, the resulting payment receipt often needs to live alongside the transaction the agent is about to sign - so the wallet preview shows "this signature pays for resource X" instead of an opaque hash.
@txkit/tx-protocol reserves a meta slot on every envelope. This package puts a typed shape on meta.x402.
npm install @txkit/x402-adapter@alpha @txkit/tx-protocol@alpha
import { createEvmTx } from '@txkit/tx-protocol'
import { attachX402Proof, extractX402 } from '@txkit/x402-adapter'
const envelope = createEvmTx({
chain: 'eip155:8453',
calls: [ { to: '0x...', data: '0x...' } ],
validity: { notAfter: Math.floor(Date.now() / 1000) + 3600 },
description: { short: 'Pay for AI skill resource', action: 'pay' },
})
const withProof = attachX402Proof(envelope, {
version: '0.1',
paymentRequirementsHash: '0xabc...',
paymentReceipt: '0xdef...',
chain: 'eip155:8453',
asset: 'native',
amount: '0xde0b6b3a7640000',
payee: '0x...',
paidAt: Date.now() / 1000,
resource: '/api/v1/agent/skill',
})
// Downstream:
const x402 = extractX402(withProof)
// → { version: '0.1', paymentReceipt: ..., resource: '/api/v1/agent/skill', ... }
attachX402Intent(envelope, intent) - attach a pre-payment intent to meta.x402attachX402Proof(envelope, proof) - attach a settled payment receipt to meta.x402extractX402(envelope) - read meta.x402, returns X402Intent | X402PaymentProof | nullisX402Intent(value) - type guardisX402Proof(value) - type guardSkeleton. Surface stable, will track x402 spec evolution as the working group ships v0.2+.
FAQs
Bridge x402 HTTP payments (Linux Foundation, since 2 Apr 2026) and PreparedTransaction. Attach payment proofs to envelopes; extract payment context from envelopes. Zero React or wagmi deps.
The npm package @txkit/x402-adapter receives a total of 5 weekly downloads. As such, @txkit/x402-adapter popularity was classified as not popular.
We found that @txkit/x402-adapter 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.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.