
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
verify-before-pay
Advanced tools
Verify an x402 counterparty's settlement-grounded reputation before your agent pays it. Drop-in for any x402 client's paymentRequirementsSelector. By Crest / AgentRank.
Before your AI agent releases funds over x402, check the counterparty against AgentRank's
settlement-grounded verdict. Drop it into any x402 client's paymentRequirementsSelector so
verification runs after the payee is known but before the payment is signed.
The payer-side complement to require-rank (which
is the provider side: a service gating its caller).
A counterfeit agent can fake fluency, a badge, even an on-chain-looking reference. It cannot fake having actually been paid. The verdict here is recomputed from real settled USDC, weighted by payer standing. In a sealed, preregistered experiment, a fake-verifiable counterfeit beat an honest agent 99% of the time without verification; performing the check flipped it, and it held 94% even against an actively lying counterparty. Surface heuristics collapse under mimicry; only verification recovers the truth.
import { wrapFetchWithPayment } from "x402-fetch";
import { verifyingSelector } from "verify-before-pay";
// default-on: every payment verifies its counterparty first
const fetchWithPay = wrapFetchWithPayment(
fetch, wallet, maxValue,
verifyingSelector({ minScore: 1, onFail: "warn" }) // surface by default; flip to "block" to refuse
);
Or check directly:
import { verifyCounterparty } from "verify-before-pay";
const v = await verifyCounterparty("0xPAYEE..."); // { verified, score, usd, payers, verdict }
| option | default | meaning |
|---|---|---|
minScore | 0 | require at least this AgentRank score (0–1000) to pass |
requireVerified | false | require settlement-verified, not just scored |
onFail | "warn" | "warn" (surface + proceed) · "block" (throw) · "allow" (silent) |
failClosed | false | on a lookup error, refuse instead of failing open |
onCheck(results) | — | callback with every verdict, for logging/telemetry |
apiBase | https://api.agentrank.info | verdict source |
Defaults are non-breaking: it always checks and surfaces, never blocks, so installing it can't
break a flow. Turn on minScore / requireVerified / onFail:"block" to make it a hard gate.
On a verification outage it fails open by default (a verifier outage must not halt your agent).
MIT · by Crest Deployment Systems · https://agentrank.info
FAQs
Verify an x402 counterparty's settlement-grounded reputation before your agent pays it. Drop-in for any x402 client's paymentRequirementsSelector. By Crest / AgentRank.
The npm package verify-before-pay receives a total of 2 weekly downloads. As such, verify-before-pay popularity was classified as not popular.
We found that verify-before-pay demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.