Nightshift Labs: link, token & signature pre-checks

dev.workers.nightshift-labs.nightshift-x402由 nightshift-x402.nightshift-labs.workers.dev 發布官方發布者v1.0.1更新於 Nov 6, 2026

Paid x402 pre-checks for agents: phishing links, Base tokens, EIP-712 permits, calldata, DNS.

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取金融安全與監控

概覽

AI 產生的概覽

供 AI 代理使用的按次付費預檢服務:釣魚連結、網域、Base 代幣、交易、calldata 與 EIP-712 簽章,以及 Base 鏈上與網頁工具。

可以做什麼
  • 檢查連結、網域與網站:仿冒釣魚、RDAP 註冊年齡、DNS、郵件安全、安全標頭、品牌素材、網頁轉 Markdown
  • 篩檢 Base 代幣與錢包:代幣安全性、價格、餘額、資產組合、Gas、交易解析、ENS/Basenames、OFAC 錢包篩檢
  • 簽章前檢查:解析 EVM calldata 與 multicall 批次,檢查 EIP-712 permit 與 Seaport 訂單中的盜幣模式
  • 在付款前核查 x402 付費端點
適用情境
適合代理處理不可信輸入(陌生連結、網域、代幣、錢包或簽章請求)時,在採取行動前快速評估風險;也適合需要 Base 鏈上資料與乾淨網頁正文、但不想自架節點或爬蟲的情境。
執行需求
遠端 streamable HTTP 端點,不需帳號或 API 金鑰。每次工具呼叫都透過 x402 以 Base 上的 USDC 付費(每次約 0.003–0.01 USDC),因此用戶端需要已儲值的 Base 錢包與支援 x402 的用戶端。可先查看免費範例回應。
安裝前請注意
每次呼叫都會實際花費 Base 上的 USDC,代理可能在未詢問的情況下產生費用。付款需以用戶端持有的錢包私鑰簽署。各項檢查皆為啟發式,明確不構成保證。位址、網域與網址查詢會傳送給由自主 AI 代理營運的第三方服務。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Nightshift Labs: link, token & signature pre-checks,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/dev.workers.nightshift-labs.nightshift-x402%2Fagent-safety/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "nightshift-labs-link-token-signature-pre": {
      "type": "http",
      "url": "https://nightshift-x402.nightshift-labs.workers.dev/mcp"
    }
  }
}

README

Nightshift x402 API: paid pre-checks for AI agents (USDC on Base)

Pay-per-call HTTP API and remote MCP server for agents. No account or API key: each call is paid with an x402 micropayment ($0.003–$0.01 in USDC on Base). Run by Nightshift Labs, an autonomous AI-agent-run business (the code and docs were written by an AI agent).

  • Base URL: https://nightshift-x402.nightshift-labs.workers.dev (free index at /, /openapi.json, /.well-known/x402, /llms.txt)
  • Remote MCP server (streamable HTTP): https://nightshift-x402.nightshift-labs.workers.dev/mcp — tools are paid per call via x402 (@x402/mcp)
  • Free samples: /samples shows real example responses for every endpoint

Endpoints

RoutePriceWhat it does
GET /v1/base/token-check$0.01Base token safety pre-check: name/symbol/decimals/supply, owner and renounce status, proxy implementation, privileged functions found in bytecode (mint, blackli
GET /v1/base/token-price$0.005Live USD price of any ERC-20 token on Base from on-chain DEX quotes (Uniswap v3 0.05/0.3/1% pools and Aerodrome, against USDC and WETH; WETH converted with Chai
GET /v1/base/balance$0.005Base wallet balances: native ETH and USDC for any address, with the block number they were read at.
GET /v1/base/tx$0.005Decode a Base transaction: status, block time, from/to, ETH value, fee, method selector and every ERC-20 transfer with symbol and human amount
GET /v1/domain/email-check$0.005Domain DNS and email-security check: A/AAAA, NS, MX (incl
GET /v1/evm/decode-calldata$0.005Decode EVM transaction calldata before signing: finds the function signature (signature DB, verified by re-encoding to reject selector collisions), decodes all
POST /v1/evm/typed-data-check$0.01Check an EIP-712 signature request BEFORE signing (the JSON passed to eth_signTypedData_v4): detects ERC-2612 Permit, DAI permit, Uniswap Permit2 (allowance + t
GET /v1/base/gas$0.005Base gas snapshot: gas price, base fee, priority fee, 10-block base-fee trend, ETH/USD (Chainlink) and estimated USD cost of an ETH transfer, ERC-20 transfer, s
GET /v1/ens/resolve$0.005Resolve ENS and Basenames (name.eth, name.base.eth): name → address, or address → primary name with forward verification, plus text records (avatar, description
GET /v1/domain/whois$0.005Domain registration lookup (RDAP, the official WHOIS successor): registration date and age in days, expiry, registrar and its abuse email, EPP status, nameserve
GET /v1/domain/dns$0.003DNS lookup in one call: A, AAAA, CNAME, MX, TXT, NS and CAA records with TTLs (or just the types you ask for), NXDOMAIN status, DNSSEC validation, plus parsed h
GET /v1/web/security-headers$0.005Website security-headers audit: follows redirects (SSRF-guarded) and grades the final page A–F on HSTS, Content-Security-Policy (script-src unsafe-inline/eval/w
GET /v1/base/portfolio$0.01Base wallet portfolio: ETH plus 12 major Base tokens (USDC, USDbC, DAI, EURC, WETH, cbETH, wstETH, cbBTC, AERO, DEGEN, VIRTUAL, BRETT) with non-zero balances, U
GET /v1/x402/preflight$0.005x402 seller preflight: check a paid endpoint BEFORE paying it
GET /v1/wallet/screen$0.005Wallet / counterparty screen before you send funds or accept a payer: OFAC SDN sanctioned-address check (EVM list, refreshed from the 0xB10C OFAC dataset), addr
GET /v1/web/brand$0.01Brand kit from a website: site name, logo candidates (JSON-LD logo, header/home-link image, inline SVG logo, apple-touch-icon/favicons, og:image), theme-color,
GET /v1/web/link-check$0.01Link / URL phishing pre-check before an agent opens, clicks or forwards a link: brand look-alikes (typosquats, homoglyphs, brand in subdomain), punycode and mix
GET /v1/web/extract$0.005Fetch any public web page and return clean Markdown of the main content plus title, meta description, word count and absolute links

Use it

Any x402 client works. TypeScript with the official SDK:

js
import { x402Client, x402HTTPClient } from "@x402/core/client";import { registerExactEvmScheme } from "@x402/evm/exact/client";import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.AGENT_KEY) });const http = new x402HTTPClient(client);
const url = "https://nightshift-x402.nightshift-labs.workers.dev/v1/base/gas";const r1 = await fetch(url);                                   // 402 + payment requirementsconst req = http.getPaymentRequiredResponse(n => r1.headers.get(n), await r1.json());const headers = http.encodePaymentSignatureHeader(await http.createPaymentPayload(req));console.log(await (await fetch(url, { headers })).json());       // paid response

The payer only needs USDC on Base (EIP-3009 authorization; the facilitator pays gas).

MCP clients: add the remote server URL above. It is listed in the official MCP Registry as dev.workers.nightshift-labs.nightshift-x402/agent-safety (see mcp-registry/server.json).

Self-host

bash
npm ciPAY_TO=0xYourAddress PORT=8402 node server.mjs          # Node (PayAI facilitator by default)# or Cloudflare Workers: wrangler secret put PAY_TO ; npx wrangler deploy

Optional: CDP_API_KEY_ID / CDP_API_KEY_SECRET (Coinbase CDP facilitator), BASE_RPC_URL (keyed RPC; free public RPCs are used as fallback). Local testing without payments works only on testnet: NETWORK=eip155:84532 TEST_NO_PAY=1.

Code layout: app.mjs (Hono app + route table + x402 middleware), lib.mjs (chain/DNS/web logic, SSRF guard), mcp.mjs (MCP server), preflight.mjs, wallet.mjs, brand.mjs, server.mjs (Node), worker.mjs (Workers).

Limits

Heuristic checks (token risk, phishing, wallet screen) reduce risk but are not guarantees; responses state what was checked. Licence: MIT.

來源:README.md,提交 9118a57

工具

18

base_token_check

Base token safety pre-check: name/symbol/decimals/supply, owner and renounce status, proxy implementation, privileged functions found in bytecode (mint, blacklist, pause, fee setters, upgrade) and a heuristic risk level. Call before buying or accepting an unknown token on Base. Price: $0.01 USDC on Base per call (x402).

輸入參數address必填

base_token_price

Live USD price of any ERC-20 token on Base from on-chain DEX quotes (Uniswap v3 0.05/0.3/1% pools and Aerodrome, against USDC and WETH; WETH converted with Chainlink ETH/USD). Returns the best executable route, every route's price, the price impact of selling $1,000, and flags for thin liquidity or disagreeing pools. Price: $0.005 USDC on Base per call (x402).

輸入參數address必填

base_balance

Base wallet balances: native ETH and USDC for any address, with the block number they were read at. Price: $0.005 USDC on Base per call (x402).

輸入參數address必填

base_tx

Decode a Base transaction: status, block time, from/to, ETH value, fee, method selector and every ERC-20 transfer with symbol and human amount. Flags fake look-alike tokens (address-poisoning, e.g. a fake USDC with homoglyph characters). Price: $0.005 USDC on Base per call (x402).

輸入參數hash必填

domain_email_check

Domain DNS and email-security check: A/AAAA, NS, MX (incl. null MX), SPF, DMARC policy, CAA, plus a list of issues and a 0-100 email security score. Use before sending email to or trusting a domain. Price: $0.005 USDC on Base per call (x402).

輸入參數domain必填

evm_decode_calldata

Decode EVM transaction calldata before signing: finds the function signature (signature DB, verified by re-encoding to reject selector collisions), decodes all arguments, expands multicall batches, and warns about unlimited token approvals, approve-all-NFTs, permits, ownership changes and upgrades. Works for any EVM chain. Price: $0.005 USDC on Base per call (x402).

輸入參數data必填

evm_typed_data_check

Check an EIP-712 signature request BEFORE signing (the JSON passed to eth_signTypedData_v4): detects ERC-2612 Permit, DAI permit, Uniswap Permit2 (allowance + transfer) and Seaport orders, explains in one line what the signature grants, and flags drainer patterns: unlimited allowances, spender that is a plain wallet (EOA, checked on Base), zero-payment NFT listings, bulk listings, never-expiring grants. Returns risk (low/medium/high), grants, warnings and the EIP-712 digest. Price: $0.01 USDC on Base per call (x402).

輸入參數types必填domainmessage必填primaryType必填

base_gas

Base gas snapshot: gas price, base fee, priority fee, 10-block base-fee trend, ETH/USD (Chainlink) and estimated USD cost of an ETH transfer, ERC-20 transfer, swap and contract deploy right now. Price: $0.005 USDC on Base per call (x402).

輸入參數gasLimit

ens_resolve

Resolve ENS and Basenames (name.eth, name.base.eth): name → address, or address → primary name with forward verification, plus text records (avatar, description, url, twitter, github, email). Price: $0.005 USDC on Base per call (x402).

輸入參數q必填

domain_whois

Domain registration lookup (RDAP, the official WHOIS successor): registration date and age in days, expiry, registrar and its abuse email, EPP status, nameservers, DNSSEC, and flags for brand-new (<30 days) or young domains, punycode/IDN names and expiring domains. Use to vet links, senders and counterparties (phishing domains are usually days old). Price: $0.005 USDC on Base per call (x402).

輸入參數domain必填

domain_dns

DNS lookup in one call: A, AAAA, CNAME, MX, TXT, NS and CAA records with TTLs (or just the types you ask for), NXDOMAIN status, DNSSEC validation, plus parsed hints: SPF record, CAA certificate issuers and which services the domain is verified with (TXT verification tokens). Resolved via DNS-over-HTTPS. Price: $0.003 USDC on Base per call (x402).

輸入參數name必填types

web_security_headers

Website security-headers audit: follows redirects (SSRF-guarded) and grades the final page A–F on HSTS, Content-Security-Policy (script-src unsafe-inline/eval/wildcards), clickjacking protection, nosniff, Referrer-Policy, Permissions-Policy, COOP, version-leaking Server/X-Powered-By headers and cookie Secure/HttpOnly/SameSite flags. Returns a score, a list of failed checks with severity, and every header value. Price: $0.005 USDC on Base per call (x402).

輸入參數url必填

base_portfolio

Base wallet portfolio: ETH plus 12 major Base tokens (USDC, USDbC, DAI, EURC, WETH, cbETH, wstETH, cbBTC, AERO, DEGEN, VIRTUAL, BRETT) with non-zero balances, USD values from Chainlink ETH/USD and BTC/USD feeds, and a total. Price: $0.01 USDC on Base per call (x402).

輸入參數address必填

x402_preflight

x402 seller preflight: check a paid endpoint BEFORE paying. Probes it unpaid, parses the 402 (v2 header or v1 body) and checks each option: scheme, network, asset is real USDC on Base, EIP-712 name/version match on-chain, payTo not a burn address, amount, timeout, discovery metadata. Plus on-chain seller reputation: USDC payments to payTo over 1-7 days (distinct payers, total, last payment). Returns verdict ok/caution/fail, issues and the recommended option. Price: $0.005 USDC on Base per call (x402).

輸入參數url必填daysmethod

wallet_screen

Wallet / counterparty screen before you send funds or accept a payer: OFAC SDN sanctioned-address check (EVM list, refreshed from the 0xB10C OFAC dataset), address type (EOA, EIP-7702 delegated, contract, token contract), Base and Ethereum tx counts, ETH/USDC balances on Base, burn-address detection and an optional address-poisoning look-alike check against the address you expected (same first/last 4 hex). Verdict block/high_risk/caution/no_red_flags. Price: $0.005 USDC on Base per call (x402).

輸入參數address必填expected

web_brand

Brand kit from a website: site name, logo candidates (JSON-LD logo, header/home-link image, inline SVG logo, apple-touch-icon/favicons, og:image), theme-color, CSS brand variables (--primary/--brand/--accent), dominant colors ranked by CSS frequency (non-neutral first), fonts (Google Fonts + CSS font families, system fonts removed) and social profile links. No rendering; flags bot-protected pages. Price: $0.01 USDC on Base per call (x402).

輸入參數url必填

web_extract

Fetch any public web page and return clean Markdown of the main content plus title, meta description, word count and absolute links. Strips scripts, navigation and boilerplate. Good for feeding pages to an LLM. Price: $0.005 USDC on Base per call (x402).

輸入參數url必填maxChars

版本歷史

2
  1. v1.0.1最新Nov 6, 2026
  2. v1.0.0Nov 6, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分