First call
From a free check to a paid one, in one sitting.
Everything here runs against the live service. No account and no API key. The first 25 Gate calls each day are free; after that a call costs $0.002.
Ask about a token
Send a token address and a policy. no-clones-v1 is one of the presets; the docs show how to write your own.
curl -X POST https://actuaryai.pro/api/v1/gate \
-H "content-type: application/json" \
-d '{"token":"0xTOKEN","policy":"no-clones-v1"}' | tee answer.json
The answer has the decision, the reasons that decided it, and a receipt with every check, the facts it read, and a signature. receipt_url is a page you can share.
A fact we could not read counts as unknown, and an unknown deny rule gives REVIEW. Missing data never lets a token through.
Check the receipt yourself
Post the receipt back as {"receipt": …} and we recompute its hashes and the signer. Or recover the signer on your side with viem's recoverTypedDataAddress and compare it with /api/v1/receipts/signer.
jq '{receipt: .receipt}' answer.json | curl -X POST \
https://actuaryai.pro/api/v1/receipts/verify \
-H "content-type: application/json" -d @-
Give it to an agent
Any MCP client connects by URL. The gate tool tells the model to call it before buying, and returns the same receipt.
claude mcp add --transport http actuary https://actuaryai.pro/mcp
Pay for a call past the free 25
POST /api/v1/gate/x402 always asks for payment, so it is the easiest way to try it. The first answer is a 402 with a quote. Your wallet signs an EIP-3009 transfer for exactly that amount, you send the same request again with the signature, and the facilitator settles it and pays the gas. Nothing is charged if the call fails.
This script does it in about 40 lines with viem. Read it first: it signs one payment of $0.002 and nothing else.
curl -O https://actuaryai.pro/examples/pay-gate.mjs
npm install viem
node pay-gate.mjs ./wallet.key base # USDC on Base
node pay-gate.mjs ./wallet.key robinhood # USDG on Robinhood Chain
wallet.key is a file holding the private key of a wallet with a little USDC or USDG. Keep it out of your shell history and out of any repository. Holders of 1,000,000 $ACTUARY pay half; see holder price.
Before your agent depends on it
Read /status (or GET /api/status) first: if the chain RPC is not answering, the Gate says so and charges nothing. Changes are dated on the changelog. Questions go to team@actuaryai.pro.
