@clearance402/sdk
v0.1.0
Published
Clearance402 SDK — wallet-scoped trust layer API client for x402 agent payments
Downloads
93
Maintainers
Readme
@clearance402/sdk
Wallet-scoped client for the Clearance402 trust layer API.
npm install @clearance402/sdkimport { createClearance402Client } from "@clearance402/sdk";
const client = createClearance402Client({
baseUrl: process.env.CLEARANCE402_API_URL,
wallet: process.env.CLEARANCE402_WALLET,
});
const { tools } = await client.listTools();
const { probe } = await client.probeEndpoint({ toolId: "x402-sepolia-demo", pay: true });
const { decision } = await client.checkBeforePayment({
agentId: "buyer-agent",
toolId: "x402-sepolia-demo",
amountUsd: 0.001,
});See https://clearancex402.vercel.app/sdk
