Know who your agent is paying. Before it pays.
Tolca checks an x402 payment request before your agent signs it: the wallet, the token, the network, the price and the company behind it. One call returns a clear verdict and a signed receipt.
No account and no API key. $0.01 in USDC on Base per check.
- Network
- Base (eip155:8453)
- Token
- USDC 0x8335…2913
- Pay to
- 0x7a2E…c91F
- Amount
- 0.02 USDC
An honest seller
Six ways an agent payment goes wrong
A 402 payment request is a few lines of JSON, and anyone can write one. Here is what Tolca looks at before your agent pays.
| What goes wrong | What Tolca checks | Verdict |
|---|---|---|
| Sanctioned wallet | The pay-to address is compared with the crypto addresses on the US Treasury SDN list, refreshed every day. | block |
| Look-alike token | The token must be the official USDC contract on Base, not a copy with the same name. | block |
| Inflated price | The amount is compared with the price the same service lists in the x402 Bazaar catalogue. | block |
| Swapped address | The pay-to address is compared with the wallet the catalogue lists for that service. | review |
| Wrong network | A testnet or an unexpected chain gets flagged before any money moves. | review |
| Sanctioned company | If you pass the seller's name, it is screened against US, UK, EU and Canadian sanctions lists. | block |
One call between the 402 and the payment
Your agent gets a 402
It asks for a paid resource and receives a payment request with a price and a wallet.
It asks Tolca first
Before signing anything, it sends that payment request to payment-check.
Tolca screens it
Wallet, token, network and price against official lists and the x402 catalogue. The seller too, if you name it.
Your agent decides
Allow, review or block, with an invoice fingerprint valid 10 minutes and a signed receipt.
Add it to your agent in a few lines
Every Tolca service is a plain HTTP endpoint paid per call with x402. Send the seller's 402 body, pay $0.01, read the verdict.
import { x402Client, wrapFetchWithPayment } from "@x402/fetch"; import { ExactEvmScheme } from "@x402/evm/exact/client"; import { privateKeyToAccount } from "viem/accounts"; const account = privateKeyToAccount(process.env.PRIVATE_KEY); const client = new x402Client(); client.register("eip155:8453", new ExactEvmScheme(account)); const payFetch = wrapFetchWithPayment(fetch, client); // sellerInvoice: the 402 body your agent just got const url = "https://tolca.tonbot.ca/v1/payment-check"; const res = await payFetch(url, { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ payment_required: sellerInvoice }), }); const check = await res.json(); if (check.action !== "allow") { throw new Error(check.reasons.join(" ")); }
curl -i -X POST https://tolca.tonbot.ca/v1/payment-check \ -H "content-type: application/json" \ -d '{"payment_required": SELLER_402_BODY}' # Tolca answers 402 with its own price ($0.01). # Pay it with any x402 client, then read the verdict.
# Paid MCP server, tool payment_check POST https://tolca.tonbot.ca/mcp PAYMENT-SIGNATURE: <your x402 payment> { "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "payment_check", "arguments": { "payment_required": SELLER_402_BODY } } }
{
"action": "block",
"risk_score": 95,
"reasons": [
"payTo address is on an official sanctions
list (Specially Designated Nationals (SDN)
- Treasury Department, program DPRK3).
Do not pay."
],
"invoice_sha256": "a7d580822f2a2711…",
"valid_until": "2026-11-04T04:05:33Z",
"nonce": "…",
"receipt": { … }
}
See all 15 services and prices
| Service | Price | What it does |
|---|---|---|
POST /v1/summarize | $0.03 | Summarize text (up to 40k chars) into a faithful, tight summary, with optional max_words and target language. Pay-per-call over x402 in USDC on Base; payment challenge answered in ~10 ms, 7-day average processing ~1.5 s across Tolca services. |
POST /v1/translate | $0.04 | Translate text between French (including Quebec French) and English, with optional tone. Pay-per-call over x402 in USDC on Base; payment challenge answered in ~25 ms, 7-day average processing ~1.5 s across Tolca services. |
POST /v1/extract | $0.02 | Turn messy text into clean JSON matching the schema you provide (field names and types). Pay-per-call over x402 in USDC on Base; payment challenge answered in ~5 ms, 7-day average processing ~1.5 s across Tolca services. |
POST /v1/extract-url | $0.03 | Fetch a public URL (HTML article, PDF, or JSON) and return JSON matching your schema in one call, with page title and source. Pay-per-call over x402 in USDC on Base; payment challenge answered in ~8 ms. |
POST /v1/pkg-check | $0.003 | npm dependency risk and PyPI package safety check: is this package safe to install? One call, one verdict: safe / caution / avoid, with a score, concrete reasons (known vulnerabilities from OSV, deprecation, abandonment, adoption, install scripts, typosquat signals) and a one-line recommendation. Input: name, ecosystem (npm | PyPI), optional version. |
POST /v1/qc-contractor-check | $0.10 | Quebec contractor check before hiring, paying or subcontracting a Québec (Canada) construction contractor, in one call: RBQ licence (status, categories, restrictions), RENA listing (banned from public contracts), environmental penalties and public contracts awarded on SEAO (count, total, buyers). Verdict ok / review / blocking with reasons, source dates and an Ed25519-signed receipt (verify at /receipts/verify). Input: name, NEQ or RBQ licence number. |
POST /v1/pkg-meta | $0.002 | Package metadata in one call, cheapest tier: latest and resolved version, license, first/last publish dates, weekly downloads, deprecation flag, install scripts, maintainers count. npm or PyPI. No vulnerability scan (see pkg-check for the full safe/caution/avoid verdict). Input: name, ecosystem (npm | PyPI), optional version. |
POST /v1/qc-licence | $0.01 | Quebec contractor licence check (RBQ): contractor license verification in one call, cheapest tier. Is this Québec contractor's RBQ licence ACTIVE right now? Returns active true/false, licence number, name, NEQ, city, restriction flag and authorized work categories. Use to vet many contractors fast; use qc-contractor-check for RENA and penalties. Input: name, NEQ or RBQ licence number. |
POST /v1/homework-check | $0.25 | Can this homework be done by an AI? For teachers and schools: paste an assignment (or a public PDF URL) and get an overall AI-completion risk 0-100, a per-question breakdown (risk, why, concrete fix to make it AI-resistant) and general tips. No student data. Input: text or url, optional grade, subject, lang fr|en. / Ce devoir peut-il être fait par une IA? Score par question et corrections concrètes pour l'enseignant. |
POST /v1/verify-business | $0.05 | KYB company verification and business registry verification before paying, onboarding or contracting a company (vendor due diligence). One call checks US, UK, EU and Canadian sanctions (CSL incl. OFAC SDN), company registries (UK Companies House, Canada federal), legal entity status (GLEIF) and contractor licences (Quebec, Washington, Oregon). Returns allow / review / block, 0-100 risk score, dated sources and an Ed25519-signed receipt. Input: name, optional country, region. |
POST /v1/web-search | $0.008 | Web search with page content: search the web and read the top pages in ONE call. Returns 10 results (title, url, snippet, date) plus the clean text of the best pages (read 0-5), with fetch time and sha256. French and Canada by default for French queries; official-sources mode (governments, registries, courts, laws); freshness filter; site: restriction. No results = HTTP 404 = not charged. Input: query, optional read, official, lang, country, freshness, site. |
POST /v1/company-enrich | $0.02 | Company profile from a domain or name in ONE call, for sales and research agents: what the company does, industry, services, service area, address, phones and emails published by the company (each with the page it came from), social links, plus official screening (registries, US, UK, EU and Canadian sanctions lists). Read live from the company's own website, no third-party database. No website found = HTTP 404 = no charge. Input: domain or name, optional city, country, lang (en|fr). Businesses only. |
POST /v1/company-fit | $0.03 | Is this company worth contacting FOR YOU? Everything in company-enrich, plus a fit verdict for your offer and goal: good / maybe / poor, a 0-100 score, reasons grounded in facts from the company's website, and an opening line that references one of those facts. Input: domain or name, plus for: { seller (who you are and what you sell), goal (sales | partnership | supplier | hiring | investment | other), optional ideal_customer }. No website found = no charge. |
POST /v1/sanctions-check | $0.005 | Sanctions screening of a company name (OFAC, US, UK, EU, Canada), cheapest tier: is this company sanctioned? One call checks the US Consolidated Screening List (incl. OFAC SDN), the UK Sanctions List, the EU consolidated financial sanctions list and Canada's autonomous sanctions list, refreshed daily. Returns allow / review / block, a 0-100 risk score, matches with official references and dates, and an Ed25519-signed receipt. Companies only. Input: name, optional country. |
POST /v1/payment-check | $0.01 | Check an x402 endpoint before paying it: is this x402 seller safe to pay? Send the seller's URL (or its 402). One call screens the payTo wallet against OFAC SDN crypto addresses, checks official USDC on its network (13 networks incl. Base, Solana, Polygon, Arbitrum) and compares price and payTo with the seller's Coinbase Bazaar listing. Returns allow / review / block, invoice hash and Ed25519-signed receipt. Input: url or payment_required, optional network, seller_name. |
Full reference: llms.txt, OpenAPI, /.well-known/x402.
Keep the receipt. It proves you checked.
Every answer comes with a receipt signed with Ed25519: what was checked, the verdict, the sources and the time. If a payment is ever disputed, anyone can verify it against Tolca's public key.
3f9c…e04b
More checks, same pay-per-call
For agents and for people
You're building an agent
No account and no API key. POST to an endpoint, receive a 402 with the price, pay in USDC on Base, receive JSON.
Also over MCP at https://tolca.tonbot.ca/mcp, and as an agent skill: npx skills add yayabough/tolca
You use Claude or ChatGPT
Add the free connector https://tolca.tonbot.ca/mcp/public to check Québec contractors and company profiles, with a free daily quota.
Claude (web or app): Customize › Connectors › Add custom connector, paste the address, choose "No sign in".
Cursor, VS Code, ChatGPT (developer mode): add a remote MCP server of type HTTP with the address above.
Where to find Tolca
EU company registries (VAT, VIES, GLEIF) come from our partner AsterPay, also over x402.