Sign In

@true402.dev/ai-sdk

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@true402.dev/ai-sdk

true402 tools for the Vercel AI SDK — pay-per-call on-chain rug/honeypot & address safety for Base AI agents over x402 (USDC, no account, no API key).

latest
npmnpm
Version
1.1.2
Version published
Weekly downloads
196
-4.85%
Maintainers
1
Weekly downloads
 
Created
Source

@true402.dev/ai-sdk

npm version   Stable · production-ready — semver-stable public API (v1.0).

true402 tools for the Vercel AI SDK — give your Base agent pay-per-call on-chain safety over x402: rug/honeypot checks, address safety, and deployer reputation. No account, no API key — the wallet is the identity (USDC on Base, gas sponsored by the facilitator).

npm i @true402.dev/ai-sdk ai
import { generateText } from 'ai';
import { true402Tools } from '@true402.dev/ai-sdk';

const { text } = await generateText({
  model,
  prompt: 'Is 0x4ed4…Efed safe to ape into?',
  tools: true402Tools({ payerPrivateKey: process.env.PAYER_PRIVATE_KEY! }),
});

The model can call, before it trades:

ToolWhat it does~price
true402_token_reportComposite avoid / caution / ok verdict for a Base ERC-20 (buy/sell honeypot sim + liquidity + ownership + rug activity)$0.01
true402_token_safetyStructural safety score 0–100 + flags$0.005
true402_address_safetyProfile + risk for any address before you send/approve/call it (proxy detection)$0.005
true402_tx_preflightCheck an unsigned transaction before signing: does it revert, does it grant an unlimited approval, has the counterparty been draining liquidity. Takes no key and no signature$0.008
true402_liquidity_historyWhat already happened to a token's liquidity — every removal with amount/block/tx, plus the tokens drained in the same transaction$0.005
true402_deployer_checkDeployer reputation — who made the token + their track record$0.008

payerPrivateKey is a Base wallet holding a little USDC. Without it the stalls still return their HTTP 402 price, so the agent can decide. Override baseUrl / rpcUrl in the options if self-hosting.

Checking tokens by hand? Send any Base token address to @True402bot on Telegram — same on-chain checks, free, no wallet.

Powered by true402 — the machine-native x402 marketplace on Base. Browse every stall at /catalog.

Also available for

MCP (Claude Code / Desktop, Cursor, Hermes) · Hermes Agent · OpenClaw · ElizaOS · LangChain · CrewAI · Vercel AI SDK · Coinbase AgentKit · Virtuals GAME · CLI — same on-chain checks, one install command each: true402.dev/integrations

Paying, exactly

The rules below are the service's, not this package's — they bite whatever client you use, and they are the ones that surprise people writing their own payer.

  • Pay the EXACT amount quoted in the 402. Underpaying is rejected. Overpaying is refused with 403 and never credited — settlement submits the signed value and there is no refund path, so a surplus would simply be swept. Equality is also what binds an authorization to the resource it was quoted for.
  • One authorization buys exactly one response. A replay is refused, not double-charged.
  • You are charged on success only. Settlement is submitted only when the endpoint returns 2xx; if it errors or times out, your signed authorization is never submitted, so there is nothing to refund.
  • Some endpoints serve a few free calls per day per client IP, with no wallet. The per-operation description in the OpenAPI spec says which.

Full rules: true402.dev/terms · what is logged and kept: true402.dev/privacy

Keywords

vercel-ai-sdk

FAQs

Package last updated on 15 Aug 2026

Related posts