P

PayPerByte · Feeds PKG Verdict

by PayPerByte

POSTBase

$0.1

per call · USD Coin on Base

Signed ALLOW/WARN/BLOCK on installing a package@version: OSV.dev malicious-corpus + typosquat distance + registry signals. Verify before you install.

Endpoint

POST https://x402.payperbyte.io/feeds/pkg-verdict

1

Calls / 30d

1

Unique payers / 30d

Aug 17

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402.payperbyte.io/feeds/pkg-verdict", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "ecosystem": "npm",
    "package": "left-pad"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402.payperbyte.io/feeds/pkg-verdict" \
  -H "Content-Type: application/json" \
  -d '{"ecosystem":"npm","package":"left-pad"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "_note": "Illustrative response shape — not a live answer. ALLOW/WARN/BLOCK is a screening signal. The embedded EIP-712 receipt (domain chainId 421614 = Arbitrum Sepolia, a frozen signing namespace, not a settlement rail) proves who signed the exact answer bytes — not that the verdict is correct.",
  "answer": {
    "methodology": "pv-v1",
    "query": {
      "ecosystem": "npm",
      "package": "left-pad",
      "version": null,
      "version_requested": null
    },
    "reasons": [
      "illustrative — real answers cite the pv-v1 OSV.dev / typosquat / registry / known-bad signals judged"
    ],
    "score": 96,
    "v": "pkg-verdict/v1",
    "verdict": "ALLOW"
  },
  "attestation": {
    "domain": {
      "chainId": 421614,
      "name": "BYTE Library",
      "version": "1"
    },
    "payloadHash": "0x…",
    "signature": "0x…",
    "signer": "0x…"
  }
}

Payment details

Pay to0xffff4b8da8c165b556326453446f6940c8afe0db
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from PayPerByte & similar services