For agent builders
File a motion
Ask before your agent trades. One call, one cent of testnet USDC, and you get a signed ruling with a ledger receipt. If the answer is no, your agent just saved itself a bad trade.
Live endpoint: https://naysayer-api.vercel.app/v1/verdict (Hedera testnet). Install: npm i naysayer · MCP: npx naysayer-mcp
Find it by name
Naysayer is discoverable as naysayer.eth (ENSv2, Sepolia). The SDK resolves the endpoint from the name and refuses to proceed if the verdict signer served by the endpoint differs from the one published under the name. Resolved live just now:
- agent-endpoint[web]
- https://naysayer-api.vercel.app
- agent-context
- NAYSAYER: paid pre-trade rulings for autonomous agents. POST https://naysayer-api.vercel.app/v1/verdict, $0.01 USDC (0.0.429274) over x402 on hedera:testnet. Rulings anchored on HCS topic 0.0.11727107.
- agent-registration[0x00010000020128148004a818bfb912233c491871b3d84c89a494bd9e][265]
- 1
- naysayer.agent-id
- eip155:296:0x8004A818BFB912233c491871b3d84c89A494BD9e:265
- naysayer.verdict-signer
- 0xd908646b42a8F77430c1E538Bf8C5cBa4C61Ac94
- naysayer.hcs-verdicts
- 0.0.11727107
- naysayer.pay-to
- hedera:testnet:0.0.11699103
- url
- https://naysayer.vercel.app
1 · What you need
- A Hedera testnet account (ECDSA or ED25519), from portal.hedera.com.
- That account associated with USDC 0.0.429274, with a little test USDC from faucet.circle.com (enter the 0.0.x account ID, not the 0x address).
2 · TypeScript SDK
import { Naysayer } from "naysayer";
// Discover by name: resolves naysayer.eth on ENS, then checks the verdict signer against the ENS record.
const ns = await Naysayer.fromEns("naysayer.eth", {
payer: { accountId: "0.0.YOUR_ACCOUNT", privateKey: process.env.HEDERA_PRIVATE_KEY },
});
const v = await ns.check({
kind: "SWAP_EXACT_IN",
tokenIn: "0x0000000000000000000000000000000000003ad2", // WHBAR 0.0.15058
tokenOut: "0x0000000000000000000000000000000000001549", // USDC 0.0.5449
amountIn: "100000000", // 1 WHBAR (8 decimals)
minAmountOut: "48000", // your floor, USDC (6 decimals)
target: "0x0000000000000000000000000000000000159398", // SaucerSwap V2 router
memo: "why the agent wants this (treated as untrusted)",
});
if (!v.granted) throw new Error("NAY: " + v.reasonName); // v.hcs.url is the receipt
// v.verdict + v.sig can be passed to a NaysayerVault for on-chain enforcement3 · MCP (Claude Code, Cursor, any agent)
{
"mcpServers": {
"naysayer": {
"command": "npx",
"args": ["-y", "naysayer-mcp"],
"env": {
"NAYSAYER_ENS": "naysayer.eth",
"HEDERA_ACCOUNT_ID": "0.0.YOUR_ACCOUNT",
"HEDERA_PRIVATE_KEY": "…"
}
}
}
}The server exposes one tool, naysayer_check_action. Its description tells the agent to call it before any swap or transfer, and to stop if the ruling is DENIED.
4 · What comes back
- granted / reasonName
- The ruling, with one of the reason codes shared with the vault contract.
- checks[]
- Each deterministic check with its numbers: oracle age, slippage floor, pool drift, allowlists.
- critic
- The Claude critic’s vote and rationale. It can only turn a grant into a denial.
- hcs.url
- The ruling on Hedera Consensus Service, written before your payment settled.
- verdict + sig
- EIP-712 signed by 0xd908646b42a8F77430c1E538Bf8C5cBa4C61Ac94. The SDK verifies it for you (signatureValid).
- payment
- The x402 settlement transaction for your one cent.
Source and tests: github.com/duongnq2798/naysayer