Predge rules whether an agent's paid job was delivered, with a signed record anyone can check.
Predge is the trust and dispute layer for AI-agent payments. The rails move the money; Predge answers the question they leave open, was the paid job delivered?, with a ruling signed by Predge's published ed25519 key and verifiable offline, and a refund recommendation when the work never arrived. v2 contracts are live on Arc and Base (addresses at Chains; status: Trust); refunds are recommendations the merchant executes, and the signed verdict is the product. We do not run a rail. Live today: x402 payments on Base, Solana, Arc, Monad and Algorand; the design is rail-agnostic. Prediction markets are the first vertical: the same signed records track settlement risk on Polymarket, where we analyzed 3,005 UMA disputes from 1 Jan to 2 Oct 2026.
Verdicts
Current: v2.1 contracts on 9 EVM chains
v2.1 deployed on Arc (5042) and Base (8453) on 23 Oct 2026, and on Arbitrum, Avalanche, BNB Chain, Celo, Optimism, Sonic and Unichain on 26 Oct 2026 (chain list and links in Chains). The same six addresses on every chain, all verified on Sourcify (exact match). They fix our own self-review findings H-01 to H-03 and M-01 to M-05.
| Contract | Address (all 9 v2.1 chains) | Links |
|---|---|---|
| PredgeAgentValidatorV2 | 0xE4CFdE5dbD9afD518b9c59136939607505bF643D | Sourcify · Arc · Base |
| AgentJobV2 | 0x5C673c6aBF3c60C3F6Ce3f1509f5d99C08F8B13F | Sourcify · Arc · Base |
| PredgeValidatorBondV2 | 0x97E960Fe3D7759af8f51A95319859E60Df554329 | Sourcify · Arc · Base |
| PredgeSettlementV2 | 0x6fac55c5187A9cdb519F77163C7e3fD9E87F6f24 | Sourcify · Arc · Base |
| MockRefundProtocolV2 (demo refund protocol) | 0x50041FdAb10f8f56E24FA9CA806f082CcAeb05E9 | Sourcify · Arc · Base |
| PredgeRefundArbiterV2 | 0xf404F908cb1ba47C01AB8526B725aAA940557eA9 | Sourcify · Arc · Base |
Owner: 0x9084f5000E07C7133D6dA5eE4f271AB6D1821144, a temporary single EOA. A transfer to a Safe 2-of-3 multisig (Ownable2Step) is planned, target 23 Oct 2026. Operator (hot ops key, rotatable by the owner): 0x8ffFB76c4329DDC8ee4a859DDF55AB48ba25e292. Bonds are a minimal floor of about $5 in each chain's native token (for example 5 USDC on Arc, 0.002 ETH on Base), not a percentage of job value. They are not a guarantee. External pre-audit scan (Olympix) done: 10 findings fixed, 7 accepted by design; fixes are in v2.1. A full audit is still planned. Receipts: predgeAI/predge-deploy.
Legacy v1 (known issues, no funds)
The rest of this section describes how the v1 contracts were designed to work. It is history, not a guarantee.
Predge sits in the arbiter seat of a refund protocol (the shape of Circle's Refund Protocol and the x402r refund extension). The contract, PredgeRefundArbiter, was designed to limit what that seat can do.
- Parties file evidence. The payer or the merchant files
sha256(evidence)on-chain under its own key. - Predge rules, citing it. The ruling records the evidence hash and the direction (refund or release) before any money moves.
rule()only accepts evidence that was already filed on-chain. - 1-day challenge window. The v1 contract defines a window of 86,400 seconds in which
challengecan be called. The current contracts hold no funds. - Intended check, not a working safeguard.
challengewas designed to compare the hash Predge cited with what the party filed. Our 20 Oct 2026 review found that after a successful ruling a challenge can never succeed (finding H-03), so do not rely on it. The v2 contracts are meant to address it.
Legacy v1 on Arc mainnet (chainId 5042)
| Contract | Address |
|---|---|
| PredgeRefundArbiter | 0xA9c39e9aEd452Ee638a10aC10f6A6288C4Ca6E89 |
| MockRefundProtocol (demo target) | 0xf6659f725B3F790287a75f7A83C373E2a3D908aa |
| PredgeValidatorBond v2.1 | 0xfeE8b89eb8aa2499F7025Cd9aaEB13a4b046d0d1 |
| AgentJob (ERC-8183) | 0x8B9589B8F5857dDe080Ac68e8B370c3bA5E74495 |
| PredgeAgentValidator (ERC-8004) | 0xbe601d486D821450F9248ab91891736B1a09699F |
Read on chain: this arbiter (0xA9c3…6E89) has challengeWindow = 86400 s and minBond = 0.05 USDC (Arc's native gas token); bond disputeWindow = 86400 s. The 0.05 USDC floor applies to this earlier Arc arbiter only.
A full run on mainnet
A demonstration run on the earlier Arc arbiter: the payer files evidence, the arbiter rules citing exactly that record and a refund executes against the demo refund protocol: fileEvidence · rule. A second ruling cited unfiled evidence, and a challenge was made against it. This is history from before our 20 Oct review, not a guarantee; no funds are held in the current contracts.
That run (18 Sep 2026) used the previous arbiter version, 0xA1533757…5Ad967. The live arbiter above adds one rule: evidence must be filed on-chain before it can be cited. Source and receipts: predgeAI/predge-arc.
Chains: v2.1 on 9 chains, legacy v1 on 16 mainnets
Current: v2.1 on the 9 chains marked v2.1 below, addresses in the v2.1 table above. Legacy v1 (known issues, no funds): one contract set, one address per contract, on every chain below. Sources verified on Sourcify (exact match).
| Chain | chainId | Contracts | Links |
|---|---|---|---|
| Ethereum | 1 | legacy v1 | v1 arbiter · v1 source |
| Base | 8453 | v2.1 + legacy v1 | v2.1 bond · v2.1 source · v1 arbiter · v1 source |
| BNB Chain | 56 | v2.1 + legacy v1 | v2.1 bond · v2.1 source · v1 arbiter · v1 source |
| Arbitrum One | 42161 | v2.1 + legacy v1 | v2.1 bond · v2.1 source · v1 arbiter · v1 source |
| Optimism | 10 | v2.1 + legacy v1 | v2.1 bond · v2.1 source · v1 arbiter · v1 source |
| Polygon | 137 | legacy v1 | v1 arbiter · v1 source |
| Avalanche C-Chain | 43114 | v2.1 + legacy v1 | v2.1 bond · v2.1 source · v1 arbiter · v1 source |
| Celo | 42220 | v2.1 + legacy v1 | v2.1 bond · v2.1 source · v1 arbiter · v1 source |
| Gnosis | 100 | legacy v1 | v1 arbiter · v1 source |
| Linea | 59144 | legacy v1 | v1 arbiter · v1 source |
| Unichain | 130 | v2.1 + legacy v1 | v2.1 bond · v2.1 source · v1 arbiter · v1 source |
| Sonic | 146 | v2.1 + legacy v1 | v2.1 bond · v2.1 source · v1 arbiter · v1 source |
| Arc | 5042 | v2.1 + legacy v1 | v2.1 bond · v2.1 source · v1 arbiter · v1 source |
| Monad | 143 | legacy v1 | v1 arbiter · v1 source |
| Mantle | 5000 | legacy v1 | v1 arbiter · v1 source |
| Robinhood Chain | 4663 | legacy v1 | v1 arbiter · v1 source |
| Contract | Legacy v1 address (all 16 chains) |
|---|---|
| PredgeRefundArbiter | 0xb2972B4944Eec83946EB7B23D572AbE04F46E22c |
| PredgeValidatorBond v2.1 | 0x800B5596a8540e752dE8f8a8AF99E927d139A643 |
| PredgeAgentValidator (ERC-8004) | 0x925767fdce6C819F027f55CC50464e3bCdfD2671 |
| AgentJob (ERC-8183) | 0xcBaB4a9FA4d756b4C5e2a18F055d2E0132CE7D1D |
| PredgeSettlement | 0x47BE8a7d461De505723a0Ac1d74982e53f8E412b |
| MockRefundProtocol (demo target) | 0xcaC30945CDF0F963f38972d939e111B87b80Cf79 |
Read on chain, same on all 16 chains: arbiter challengeWindow = 86400 s, minBond = 1015 wei, i.e. 0.001 of the chain's native token (0.001 ETH on Ethereum and the ETH L2s, 0.001 BNB, POL, AVAX, CELO, xDAI, S, MNT or MON elsewhere; on Arc the native token is USDC, so 0.001 USDC). The bond is posted in the native token.
Deployed 18 Oct 2026 from 0x5d016C1B4d7A42eB7c982da1Ae7fFdB958CFCAe9. Receipts per chain: predgeAI/predge-deploy. The Arc table above is the earlier Arc deployment and the full mainnet run; both stay live. Need another EVM chain? Ask us: it deploys in a day.
Zcash: shielded 2-of-3 escrow (mainnet)
Zcash · mainnet. Predge runs a shielded 2-of-3 FROST escrow on Zcash. The buyer, the seller and a neutral arbiter (Predge) each hold one key share, and any two of them can pay out. The arbiter co-signs only the exact payment that its Ed25519-signed verdict names; it cannot move funds alone. Funds sit in Zcash's shielded Ironwood pool, and on chain a payout looks like an ordinary shielded transaction.
Status: all three paths (release, dispute refund, dispute payout), plus the arbiter refusing a wrong payout, ran end to end on the public Zcash testnet on 31 Oct 2026. On 13 Nov 2026 the dispute-refund path ran on Zcash mainnet with real ZEC: 0.02 ZEC funded into the escrow, the arbiter refused a payout to the seller that its verdict did not name, then buyer and arbiter co-signed the refund (mainnet payout transaction 50407885adf3b688f30d3a2e8d020297f1adb775dc9b5e2be9e6d50c61fcd5f2). Example testnet refund transaction: 2bc943804f1b30eb256a3f33b79a60677621c01e4cb41320ba7a32ee70c1f711.
Code: predgeAI/zcash-escrow. Predge also contributes tamper test cases to OpenPGP-Wallet/frost-zec: co-signers must refuse a PCZT that pays the wrong address.
Request a verdict (API)
Your agent paid for a service call. Send Predge what was promised, what arrived and what was paid, and get a signed verdict back: delivered, not_delivered or inconclusive. The checks are deterministic (no model, no human at Predge): HTTP status, content type, non-empty body, valid JSON, your JSON Schema, required fields, an expected sha256 and a latency bound. Predge does not observe the delivery, so the verdict is only as true as the evidence you send.
POST https://api.predge.io/v1/verdicts $0.05, paid call under $1
POST https://api.predge.io/v1/verdicts/large $0.50, paid call of $1 or more
GET https://api.predge.io/v1/verdicts/:id free, the stored signed verdict
GET https://api.predge.io/v1/verdicts/report free with a key, signed monthly reportPay over x402 (USDC on Base, Solana, Algorand, Arc or Monad, no key), or send a pilot key in x-predge-key: free during your 30-day pilot, counted on the key's daily quota. A call sent to the wrong price tier gets 400 wrong_tier and is not charged.
curl https://api.predge.io/v1/verdicts \
-H "content-type: application/json" \
-H "x-predge-key: $PREDGE_KEY" \
-d '{
"job": {
"endpoint": "https://api.example.com/v1/report",
"expected_content_type": "application/json",
"json_schema": {"type": "object", "required": ["rows"]},
"required_fields": ["rows"],
"max_latency_ms": 5000
},
"delivery": {
"status": 502,
"headers": {"content-type": "text/html"},
"body": "<html>bad gateway</html>",
"latency_ms": 420
},
"payment": {
"amount_usd": 0.25, "network": "eip155:8453", "tx_hash": "0x...",
"payer": "0xBuyer...", "payee": "0xMerchant..."
},
"buyer_id": "agent-42", "merchant_id": "example-api",
"agent": {"id": "eip155:8453:0x8004...:123", "version": "2.1.0",
"operator": "Acme Payments, Inc.", "authorization_ref": "mandate/weekly-cap"}
}'Know your agent (optional). Add agent (the buyer agent) and provider_agent (the merchant's agent), each with id (an ERC-8004 agent id or any stable string), version, operator (the company or wallet accountable) and an optional authorization_ref (a mandate or policy id). They are declared by you and not verified by Predge, but they are signed into the verdict, stored and returned (null when not given), so the declaration cannot be changed afterwards. Requests without them work as before.
Response (trimmed):
{
"id": "vrd_Zm9vYmFyYmF6cXV4MTIzNDU2",
"verdict": "not_delivered",
"reason_codes": ["status_not_2xx", "content_type_mismatch", "schema_violation"],
"checks": [{"id": "status_2xx", "status": "fail", "detail": "HTTP 502, not a 2xx success"}, ...],
"refund_recommended": true,
"refund_amount_usd": "0.250000",
"refund": {
"recommended": true, "amount_usd": "0.250000",
"from": "0xMerchant...", "to": "0xBuyer...",
"status": "recommendation_only", "onchain": null,
"instructions": "The merchant (payee) should return this amount to the buyer (payer) ..."
},
"verify_url": "https://api.predge.io/v1/verdicts/vrd_...",
"attestation": {"kind": "verdict", "algorithm": "ed25519", "canonical": "...", "signature": "..."}
}From TypeScript, with a pilot key:
const res = await fetch("https://api.predge.io/v1/verdicts", {
method: "POST",
headers: { "content-type": "application/json", "x-predge-key": process.env.PREDGE_KEY! },
body: JSON.stringify({ job, delivery, payment }),
});
const verdict = await res.json();
if (verdict.refund_recommended) notifyMerchant(verdict.refund, verdict.verify_url);The verdict is signed with the same ed25519 key as every Predge record (the attestation field, and the x-predge-body-signature header over the whole body); check it offline as described under Verify. Anyone holding the id can re-read it for free at GET /v1/verdicts/:id; ids are unguessable.
Monthly dispute-handling report
For a risk or compliance team: GET /v1/verdicts/report?month=2026-10 with your key in x-predge-key (optional merchant_id, limit up to 1000, cursor). It is free and counts as one call on the key's quota. A key sees only the verdicts it requested; without a key the answer is 401.
curl "https://api.predge.io/v1/verdicts/report?month=2026-10" -H "x-predge-key: $PREDGE_KEY"The report holds the counts (total, delivered, not delivered, inconclusive), refund recommendations (count and total USD), top reason codes, median and p95 time from the delivery evidence timestamp to the verdict, the verdict ids with outcome and verify_url (paginated), a reproducible sample and a methodology note. It is signed like a verdict (attestation and x-predge-body-signature), so it verifies offline under Verify. It counts signed records built on the evidence requesters supplied; it is not an audit of the deliveries.
refund block states who should pay whom and how much, and the merchant executes it, by an off-chain credit or refund or a transfer to the payer. The signed verdict is the product; onchain is null in verdict responses. v2 contracts are live on Arc and Base (addresses at Chains).Pricing
Start a free pilot: your key appears on the page in seconds. Questions? Telegram.
Settlement risk
One call tells you whether a Polymarket market's resolution is settled, disputed or waiting on a UMA vote, read live from UMA's Optimistic Oracle and Polymarket's UMA CTF adapter on Polygon. Free, no key, signed.
curl https://api.predge.io/v1/settlement-risk/:market:market = condition id, numeric market id or slug.
Protocol V2 markets: UMA-resolved ones are read through Polymarket's OracleAggregator (protocol: "v2"); Chainlink- or EOA-reported and atomic neg-risk V2 markets return 422 unsupported_protocol_v2 until supported. A 422 or 404 is never a "no risk" answer.
What you get
risk_level:ok(no proposal or dispute),watch,caution(disputed, sent to a UMA vote, or paused),resolved(the on-chain resolution is final).uma_state,dispute_count, every dispute with its tx,sent_to_uma_vote, bulletin-board updates,onchain_resolution.segment_dispute_rate: how often 2026 markets of this kind were disputed, with a 95% interval.attestation: an ed25519 signature over the record, key id998912866a4361a5. See Verify.
Dispute tracker (free)
Every Polymarket market disputed on UMA in the last 30 days, with its status (disputed, uma_vote, resolved) and a link to its signed record. Page: data.predge.io/disputes. Embeddable badge: <iframe src="https://data.predge.io/badge?market=ID" width="320" height="96">.
curl https://api.predge.io/v1/settlement-risk/activeSettlement estimate (paid)
GET https://api.predge.io/v1/settlement-risk/:market/estimateThe full signed record plus settlement_estimate. $0.02 per call over x402, in USDC on Base, Solana, Algorand, Arc or Monad; the payment that bought it sits inside the signed record. A 400/404/422/502 is not charged; Protocol V2 markets return 422 unsupported_protocol_v2 here until the estimate supports them. Pilot partners can get a key (x-predge-key header) that unlocks it without payment.
Signed payment receipts follow the open spec in predgeAI/x402-receipts.
Desk: alerts on the markets your wallets hold
For traders. Add up to 10 wallets; every Polymarket market they hold is watched, and each settlement event is sent to your webhook and Telegram: proposal, dispute, uma_vote (disputed twice, the outcome goes to a UMA vote), bulletin_update (clarifications and other notices) and resolution. Every event carries the signed settlement-risk record, the evidence for each dispute. Start the 14-day Desk trial, then $300/mo.
curl -H "x-predge-key: $DESK_KEY" https://api.predge.io/v1/desk/config
curl -X PUT -H "x-predge-key: $DESK_KEY" -H "content-type: application/json" \
-d '{"wallets":["0x…"],"webhook_url":"https://you.example/hook","telegram_chat_ids":["123456789"]}' \
https://api.predge.io/v1/desk/config
curl -X POST -H "x-predge-key: $DESK_KEY" https://api.predge.io/v1/desk/test
curl -H "x-predge-key: $DESK_KEY" https://api.predge.io/v1/desk/eventsWebhook deliveries are signed: x-predge-signature: sha256=HMAC-SHA256(secret, "<x-predge-timestamp>.<raw body>"). Reject timestamps more than 5 minutes off. Non-2xx answers are retried for about an hour. The same key covers 5,000 /estimate calls a month.
Whale data API and MCP
Polymarket whale trades, wallet track records ranked by outcome-verified edge, smart-money signals and signed attestations. Pay per call in USDC over x402: no account, no API key.
| Route | Price |
|---|---|
| GET /v1/whales/latest | $0.005 |
| GET /v1/wallets/leaderboard | $0.01 |
| GET /v1/wallets/:address | $0.01 |
| GET /v1/signals/consensus | $0.03 |
| GET /v1/attest/:conditionId | $0.02, signed |
Full route list and prices: api.predge.io · openapi.json · /.well-known/x402. Paid data is delayed 15 minutes.
Call it from code
npx x402-proxy https://api.predge.io/v1/whales/latest?limit=10Any x402 client works (for example @x402/fetch): request the route, read the 402, pay, retry.
MCP server
claude mcp add predge-whale-data \
-e BUYER_PRIVATE_KEY=0xYOUR_FUNDED_BASE_KEY \
-e X402_NETWORK=base \
-- npx -y @predge/whale-data-mcp@predge/whale-data-mcp on npm (source). Paid tools spend real USDC and are hard-capped by MAX_PRICE_USD ($0.05 by default) before any money moves. The free tools (discovery, settlement risk, record verification) need no key. Use a dedicated low-balance buyer wallet. For a subscription with sign-in instead of a wallet, use the hosted MCP server.
Hosted MCP server
Predge inside Claude, ChatGPT, Cursor, Codex and other MCP clients: Polymarket whale trades, wallet profiles, insider signals and the signed settlement-risk check, with Desk alerts for the markets your wallets hold. One URL, sign in with your Predge account, no wallet and no per-call payments to Predge. This is the subscription route for people; agents that pay per call use the npm server and x402, and verdicts live in the API.
https://app.predge.io/mcpStreamable HTTP, stateless, JSON responses. Without credentials it answers 401 with WWW-Authenticate: Bearer resource_metadata="https://app.predge.io/.well-known/oauth-protected-resource/mcp".
Connect
Claude (claude.ai, Desktop, mobile): Customize > Connectors > Add custom connector, paste the URL above, choose "Sign in now", sign in to Predge and click Allow. ChatGPT: Plugins > + > Add custom MCP server, paste the URL, choose OAuth. On Team and Enterprise plans an owner adds the connector once for the organization.
Clients that take a header use a personal access token. Create one at app.predge.io/app/agents (it starts with pgm_, is shown once, up to 10 per account) and send it as Authorization: Bearer pgm_…. That page also has copy-paste setup for each client.
# Claude Code
claude mcp add --transport http predge https://app.predge.io/mcp --header "Authorization: Bearer $PREDGE_MCP_TOKEN"
# Gemini CLI
gemini mcp add --transport http --header "Authorization: Bearer $PREDGE_MCP_TOKEN" predge https://app.predge.io/mcp// Cursor: ~/.cursor/mcp.json
{ "mcpServers": { "predge": { "url": "https://app.predge.io/mcp", "headers": { "Authorization": "Bearer pgm_…" } } } }# Codex CLI: ~/.codex/config.toml (or OAuth: codex mcp login predge)
[mcp_servers.predge]
url = "https://app.predge.io/mcp"
bearer_token_env_var = "PREDGE_MCP_TOKEN"OAuth
OAuth 2.1 per the MCP authorization spec, for clients with a Connect button. Dynamic client registration (RFC 7591) at /oauth/register, public clients only, so there is no client id or secret to enter. Authorization code with PKCE S256 (mandatory), refresh tokens with rotation, access tokens valid for 1 hour, scope mcp. Each connection shows up in app.predge.io/app/agents as a connected app and can be disconnected there.
| Document | URL |
|---|---|
| Protected resource (RFC 9728) | app.predge.io/.well-known/oauth-protected-resource/mcp |
| Authorization server (RFC 8414) | app.predge.io/.well-known/oauth-authorization-server |
Plans and limits
| Free | Pro | Desk | |
|---|---|---|---|
| Price | $0 | $20/mo or $195/year | $300/mo, 14-day free trial |
| Tools | search_markets, live_whale_trades, top_whales | every read tool | Pro tools plus Desk alerts and wallets |
| Calls per UTC day | 25 | 2,000 | 2,000 |
| Calls per minute | 10 | 60 | 120 |
| Data | trades delayed 90 s, up to 10 rows a call | live | live |
Over a limit, or on a tool your plan does not include, the call returns an MCP tool error that says why and links to app.predge.io/app/settings. Upgrade there and call again. Desk: start the trial.
Tools
| Tool | Plan | What it does |
|---|---|---|
| search_markets | Free | Find markets by words, id, slug or link |
| live_whale_trades | Free | Latest large trades (Free: 90 s delay, 10 rows) |
| top_whales | Free | Highest-scoring wallets (Free: 10 rows) |
| get_market | Pro+ | Market detail with whale flow and order flow |
| get_wallet | Pro+ | Wallet score, P&L and recent trades |
| insider_signals | Pro+ | Fresh-wallet and all-in signals |
| settlement_risk | Pro+ | Signed UMA settlement-risk check |
| perps_markets | Pro+ | Polymarket Perps prices, funding and open interest |
| perps_whales | Pro+ | Perps whale board with the Predge score |
| perps_wallet | Pro+ | A Perps account: positions, leverage, liquidation estimate |
| lonestar_weather_forecast | Pro+ | LoneStarOracle WeatherOracle P(high > X), paid x402 $0.02 to LoneStarOracle |
| lonestar_macro | Pro+ | LoneStarOracle US macro, paid x402 $0.05 to LoneStarOracle |
| lonestar_rates | Pro+ | LoneStarOracle rates and recession odds, paid x402 $0.05 to LoneStarOracle |
| lonestar_labor | Pro+ | LoneStarOracle US labor, paid x402 $0.05 to LoneStarOracle |
| lonestar_energy | Pro+ | LoneStarOracle EIA energy inventories, paid x402 $0.05 to LoneStarOracle |
| proxies_sx_proxy | Pro+ | Proxies.sx residential/mobile proxy for anti-bot or geo-blocked sources, paid x402 $4/GB (min $0.40) to Proxies.sx |
| my_watchlist | Pro+ | Your watchlist wallets |
| my_desk_alerts | Desk+ | Recent dispute and settlement events |
| desk_wallets | Desk+ | Wallets your Desk watches |
| desk_add_wallet | Desk+ | Add a wallet to your Desk |
Read-only except desk_add_wallet, which only edits your own Desk wallet list. Tools marked "paid x402 to" another provider do not charge you through Predge: the tool returns that provider's x402 payment requirement, and your own x402 client pays the provider directly. Predge never holds keys and never places orders. Settlement exits (a sell at 2¢ or less, or 98¢ or more) are left out of trade lists unless you ask for them.
Paying
Three ways, depending on who you are, plus a dashboard to manage keys and credits (4). The same x402 call works in all of them; a key only changes what is free.
1. Keyless x402, per call
No account and no key. Call a paid route, the API answers 402 with the price and the networks it accepts, your client pays USDC and repeats the request. The 402 header (PAYMENT-REQUIRED) is x402 v2; the JSON body says the same in plain words. You need a wallet with a little USDC on one of the accepted networks. This is a complete Node client for Base, using the v2 packages:
// npm i @x402/fetch @x402/evm viem (Node 20+, ES module)
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// A wallet that holds USDC on Base. Use a dedicated low-balance key.
const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY);
const client = new x402Client();
registerExactEvmScheme(client, { signer });
const pay = wrapFetchWithPayment(fetch, client);
// $0.03: the client reads the 402, signs the payment, retries.
const res = await pay("https://api.predge.io/v1/signals/consensus");
console.log(res.status, await res.json());Do not use the old x402-fetch v1 package: it reads the offer from the body, and a v1 payment is not what the v2 server expects. To try without writing code: npx x402-proxy https://api.predge.io/v1/whales/latest?limit=10. Prices and networks per route: llms.txt.
2. Pilot key: free for 30 days, then per call
Get a key at predge.io/start (email only). Send it as x-predge-key. For 30 days it gives you a daily quota on the free signed routes and the paid settlement estimate (GET /v1/settlement-risk/:market/estimate) at no charge. After 30 days the estimate answers 402 again, with the header X-Predge-Pilot: estimate_grant_expired. From then on you pay per call with the keyless x402 client above; the key is not needed for that. See your plan, quota and expiry with GET /v1/me or on predge.io/account.
curl -H "x-predge-key: $PREDGE_KEY" https://api.predge.io/v1/me3. Desk, for traders
Settlement alerts on your Polymarket wallets, $300 a month after a free trial. Details and sign-up: predge.io/desk. API: above.
4. Manage keys and credits
Sign in at app.predge.io/developers to manage your API keys in one place: create keys (up to 5 active, shown once and stored only as a hash), rename, revoke (takes effect on the next request) and rotate (a new key now, the old one keeps working for a grace period you choose, 24 hours by default). It also shows usage per key (today, 7 and 30 days, by route) and your quota. Got a pilot key from predge.io/start? Open the link under your new key, or paste the key in the dashboard, to attach it to your account. Pilot keys and cabinet keys (pdg_live_…) work the same way.
To pay from a balance instead of per call, add funds in USDC under Billing ($20, $50, $200 or your own amount from $10 to $1,000). Calls with x-predge-key to priced data routes then take their price from your credits first, and the response says so (X-Predge-Credits-Charged, X-Predge-Credits-Balance). A call that fails is not charged. With no credits, or on a route whose signed answer names an x402 payment (/v1/attest, /v1/wallets/:address/attest, /v1/track-record), you pay per call over x402 exactly as above. Each top-up has a receipt you can print.
curl -H "x-predge-key: $PREDGE_KEY" https://api.predge.io/v1/whales/latest # paid from credits, no x402 client neededVerify a signature
Every signed record carries an attestation with canonical (the exact signed bytes), signature and kid. Check it offline against Predge's key registry, not the key inside the response: find the key by kid, and reject any key the registry lists as revoked, whenever the signature was made. Keys rotate; re-read the registry instead of pinning a key.
| Current key id (kid) | 998912866a4361a5 |
| ed25519 public key | 998912866a4361a5da16d95853d406c7b78b3887d45ff49c369db927c643aeed |
| Key registry | api.predge.io/.well-known/predge-keys.json |
// Node 20+, no dependencies
import { createHash, createPublicKey, verify } from "node:crypto";
const reg = await (await fetch("https://api.predge.io/.well-known/predge-keys.json")).json();
const r = await (await fetch("https://api.predge.io/v1/settlement-risk/5608010")).json();
const a = r.attestation;
// Look the key up by kid in the registry and refuse revoked keys
const entry = reg.keys.find((k) => k.kid === a.kid);
if (!entry || entry.status === "revoked") throw new Error("unknown or revoked key " + a.kid);
const key = createPublicKey({ format: "der", type: "spki",
key: Buffer.concat([Buffer.from("302a300506032b6570032100", "hex"), Buffer.from(entry.public_key, "hex")]) });
// predge-attest-v2 signs "predge-attest-v2\n" + sha256 hex of canonical; v1 signs canonical itself
const msg = a.version === "predge-attest-v2"
? "predge-attest-v2\n" + createHash("sha256").update(a.canonical, "utf8").digest("hex")
: a.canonical;
console.log(verify(null, Buffer.from(msg, "utf8"), key, Buffer.from(a.signature, "hex"))); // trueWhat is signed
On settlement-risk records (payload_version: "2", since 18 Oct 2026) the signature also covers the market question and slug, the sha256 of every bulletin-board update, and the Polygon block every read was made at (block: number and hash). Every eth_call runs at that block, so an archive node reproduces the record exactly. Since payload_version: "3" the market dates are signed under their Polymarket names: gamma_end_date (the scheduled end set at creation, often stale), uma_end_date and closed_time (when the market actually closed), each ISO-8601 UTC or null, with the raw Gamma strings in gamma_dates_raw. The version 2 field end_date is gone; read gamma_end_date for the same value. Older records stay valid.
The whole HTTP body is signed too, in the x-predge-body-signature header: ed25519 over predge-body-v1, a newline, then the raw body bytes.
const res = await fetch("https://api.predge.io/v1/settlement-risk/5608010");
const body = Buffer.from(await res.arrayBuffer());
const sig = /sig=([0-9a-f]{128})/.exec(res.headers.get("x-predge-body-signature"))[1];
console.log(verify(null, Buffer.concat([Buffer.from("predge-body-v1\n"), body]), key, Buffer.from(sig, "hex"))); // trueSpec: data.predge.io/canonicalization.md, sections 5a and 5b. Python: python3 verify_record.py record.json --body-signature "<header>" (verify_record.py).
No code: paste a record into data.predge.io/verify. For signed x402 payment receipts, the spec, TypeScript library and test vectors are in predgeAI/x402-receipts.
GPU rental: pay per verified day
Settlement for renting GPU time to a buyer you do not know. The buyer prepays each day in USDC into an escrow contract on Arc. A probe checks the day and Predge signs a verdict. A delivered day pays the host; a failed day refunds the buyer. Overview for hosts and buyers: predge.io/gpu.
Contract: AgentJobV2 on Arc mainnet
| Contract | Address (Arc, chainId 5042) |
|---|---|
| AgentJobV2 (ERC-8183-style job escrow) | 0x5C673c6aBF3c60C3F6Ce3f1509f5d99C08F8B13F |
One job per rented day. USDC is Arc's native gas token, so the escrow is the value sent with createJob. The USDC sits in the contract, not with Predge.
- Create. The buyer (client) calls
createJob(provider, evaluator, specHash, expiredAt)and sends the day's price; that value is the escrow. The evaluator must differ from both the client and the provider. On GPU deals the evaluator is Predge. - Submit. Before
expiredAtthe host (provider) callssubmit(jobId, deliverable, output).deliverableis the sha256 of the day's evidence file.outputis optional: if it is sent, the contract checks on-chain that its sha256 equalsdeliverable. - Decide. Within
evaluationWindowafter the submission, Predge callscomplete(jobId, reason, data)to pay the provider orreject(jobId, reason, data)to refund the client.reasonis a bytes32 commitment to the signed verdict. - Timeout. If the job expires without a submission, or Predge does not decide within the evaluation window, anyone can call
claimRefund(jobId)and the escrow goes to the client. - Withdraw. A payout or refund is credited to the recipient, who withdraws it with
withdraw()orwithdrawTo(to).
Read a job with getJob(jobId). Events: JobCreated, Submitted, Completed, Rejected, Refunded, Withdrawn.
SLA and specHash
Host and buyer agree the SLA before the buyer pays. Each day has a spec: deal id, day number, time window, price, SLA, host and buyer addresses and network. The sha256 of its canonical JSON is the job's specHash, so the terms of the day are fixed on-chain. The SLA of the 1x A100 80GB deal:
"sla": {
"gpu_model": "A100",
"gpu_count": 1,
"min_memory_mib_per_gpu": 80000,
"heartbeats_per_period": 24,
"min_uptime_pct": 95,
"benchmark": "fp16_matmul_tflops_per_gpu",
"min_benchmark": 200
}Read as: the GPU name contains A100, at least 1 GPU, at least 80000 MiB of memory per GPU, up in at least 95% of 24 heartbeats, and at least 200 TFLOPS on the fp16 matmul.
Probe
The probe runs inside the rented instance, like any buyer workload. It needs no access to the host's machines or network. Over the day it records nvidia-smi heartbeats (GPU name, count, memory) and runs a short fp16 benchmark: an 8192x8192 matmul on cuda:0 with PyTorch and CUDA, about 10 seconds. The output is an evidence JSON (predge-compute-evidence-v1). Its sha256 is the deliverable the host files on-chain.
Verdict
Predge checks the evidence against the spec and signs a verdict for the day: delivered or not_delivered. It uses the same predge-attest-v1 envelope as other Predge verdicts (ed25519 over canonical JSON) and binds the job spec hash (job_sha256), the prepay transaction (payment_ref) and the evidence hash (delivery.body_sha256). Check it offline like any verdict: Verdicts and Verify a signature.
Proof: three days on Arc mainnet
12 Nov 2026. A rented A100, 0.20 USDC per day in escrow, 14 transactions in total. On day 2 the host swapped in an A40 and the day was refunded.
| Day | What the probe saw | Result | Verdict transaction |
|---|---|---|---|
| Day 1 | NVIDIA A100-SXM4-80GB, checks passed | Paid to host | 0xa292…37ba |
| Day 2 | NVIDIA A40 (48 GB) instead of the contracted A100 | Refunded to buyer | 0x7fe8…4b16 |
| Day 3 | NVIDIA A100-SXM4-80GB again, checks passed | Paid to host | 0x3118…ea46 |
Limits today
- The contract was checked with Olympix automated tools. There is no independent manual audit yet, so first deals are small and capped.
- A host who controls the machine could try to feed the probe fake readings. In production we pin the probe image and cross-check readings from outside the instance.
Start
Tell us your GPUs and your price per day: predge.io/gpu, or message us on Telegram: t.me/latcom.
Contact
Book a 30-minute call: calendly.com/hello-predge/30min. Or email hello@predge.io, or message us on Telegram: t.me/latcom.