Know-your-agent check before you pay or hire an agent
ai-policy-kit.moneymaker-ai.workers.dev/api/erc8004-agent
Know-your-agent check before you pay or hire an agent: reads the ERC-8004 Identity Registry (0x8004A169…a432) at a pinned block on base, ethereum, bsc, arbitrum, optimism, polygon, gnosis or celo and returns ownerOf, getAgentWallet and tokenURI, fetches the registration file (https/ipfs/data) with its sha256, and checks that the file's agentWallet and registrations[] match the chain. Includes the
GET
https://ai-policy-kit.moneymaker-ai.workers.dev/api/erc8004-agentUptime100% of 3 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://ai-policy-kit.moneymaker-ai.workers.dev/api/erc8004-agent?id=364913&chain=bsc");
console.log(await res.json());Example input
{
"id": "364913",
"chain": "bsc"
}