New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@nullclear/x402-arbiter

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nullclear/x402-arbiter

NullClear Developer and Agent SDK for safe x402 calls with deferred schema escrow

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

@nullclear/x402-arbiter

Autonomous Agent SDK for zero-risk HTTP 402 calls via NullClear Deferred Non-Custodial Schema Escrow.

Key Features

  • Automatic 402 Interception: Intercepts standard 402 Payment Required headers and signs EIP-3009 authorizations.
  • Zod & JSON Schema Enforcement: Define expected response structures with standard Zod or JSON schemas.
  • $0 Spend Protection: If the seller crashes, returns 500, or hallucinates bad types, settlement is voided and $0 is spent.

Quickstart

import { createNullClearFetch } from "@nullclear/x402-arbiter";
import { z } from "zod";

const nullclearFetch = createNullClearFetch({
  accountOrPrivateKey: "0x...", // Buyer private key or viem account
  chainId: 8453, // Base Mainnet (or 84532 for Base Sepolia)
  arbiterUrl: "https://arbiter.nullclear.dev"
});

// Make requests normally - 402 will be intercepted and escrow-routed
const response = await nullclearFetch("https://seller-agent.com/v1/alpha", {
  nullclear: {
    sellerAgentId: "42",
    minTrustScore: 60,
    schema: z.object({
      ticker: z.string(),
      price: z.number(),
      confidence: z.number()
    })
  }
});

const data = await response.json();
console.log("Verified data:", data);

FAQs

Package last updated on 17 Oct 2026

Related posts