API reference
Every public endpoint of the Shield API, generated from its OpenAPI 3.1 spec. Base URL https://api.heimdall.fund.
Point any OpenAPI tool at the spec to get a client in your language, or hand it to an agent: https://api.heimdall.fund/openapi.json (also at heimdall.fund/openapi.json).
npx @openapitools/openapi-generator-cli generate -i https://api.heimdall.fund/openapi.json -g python -o heimdall-client
Agent2Agent (A2A)#
Agents that speak A2A can delegate a check as a task. The agent card is at https://api.heimdall.fund/.well-known/agent-card.json; send SendMessage over JSON-RPC to https://api.heimdall.fund/a2a with a data part. The task comes back completed, with the verdict as data and as one readable line. Free tier, x402 and API keys work the same as on the REST routes.
{"jsonrpc":"2.0","id":1,"method":"SendMessage","params":{"message":{"messageId":"1","role":"ROLE_USER",
"parts":[{"data":{"from":"0x…","to":"0x…","data":"0x…","value":"0"},"mediaType":"application/json"}]}}}PAYMENT-REQUIRED header: pay per call in USDG with x402, or send an API key as x-api-key. See API keys & limits.Check#
Judge a transaction or a signature before signing
/v1/checkCheck a transaction before signing
Simulates the call against the current Robinhood Chain state and applies Shield's rules and your policy. Send the exact transaction the agent is about to sign.
| Field | Type | Default |
|---|---|---|
| chainId | number | 4663 |
| from* | string | |
| to | string | null | |
| data | string | "0x" |
| value | string | integer | "0" |
| policy | object | {} |
| share | boolean | |
| authorizationList | object[] | |
| probe | boolean |
Responses: 200400402429
/v1/check-signatureCheck an EIP-712 or personal_sign request
Catches Permit, Permit2, Seaport and other off-chain signatures that move assets without a transaction. Send exactly one of typedData or message.
| Field | Type | Default |
|---|---|---|
| chainId | number | 4663 |
| signer* | string | |
| typedData | object | |
| message | string | |
| authorization | object | |
| policy | object | {} |
| share | boolean |
Responses: 200400402429
/v1/verdicts/{id}A shared verdict
Verdicts are stored only when the check was sent with share: true.
Path: id
Responses: 200404
Risk#
What Heimdall knows about an address
/v1/riskEverything the Risk Oracle holds
Addresses with a risk level and flags, as the monitor writes them to the onchain Risk Oracle.
Responses: 200
/v1/risk/{address}Risk level of one address
Path: address
Responses: 200400
/v1/token/{address}Token Check: is this token safe to buy?
Simulates a buy, a sell and a transfer through the token's Uniswap v3 pool against WETH on the current state, measures taxes from the transfers, tests whether a stranger or the owner can pull tokens from a holder, and checks for fake tickers and the blocklist. Cached for 60 seconds.
Path: address
Responses: 200400402429
/v1/threatsThreat Board
Most caught patterns, recent denials, most denied addresses and the sourced blocklist.
Responses: 200
/v1/wallet/{address}Wallet Check: risky approvals of a wallet
Path: address
Responses: 200400402429
Agents#
ERC-8004 agent passports and reputation
/v1/agents/{address}Shield record of an agent wallet
Path: address
Responses: 200
/v1/passport/{id}Agent passport by ERC-8004 agent ID
Path: id
Responses: 200404
/v1/passportLinked agents, best score first
Responses: 200
Service#
Health, status and payment discovery
/healthLiveness and chain head
Responses: 200503
/v1/statusPublic status
Services, head block, response times, checks per day, 30 days of uptime and incidents. Same data as heimdall.fund/status.
Responses: 200
/v1/signerReceipt signer and EIP-712 domain
The address whose receipts Heimdall contracts accept, with the domain and types to verify them yourself.
Responses: 200
/x402/supportedx402 schemes and networks this facilitator settles
Responses: 200503
/x402/discovery/resourcesx402 Bazaar discovery: every paid resource and its price
Responses: 200