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).

Terminal
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.

JSON
{"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"}]}}}
No key needed for the free tier. Above it, the API answers 402 with a 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

POST/v1/check

Check 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.

FieldTypeDefault
chainIdnumber4663
from*string
tostring | null
datastring"0x"
valuestring | integer"0"
policyobject{}
shareboolean
authorizationListobject[]
probeboolean

Responses: 200400402429

POST/v1/check-signature

Check 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.

FieldTypeDefault
chainIdnumber4663
signer*string
typedDataobject
messagestring
authorizationobject
policyobject{}
shareboolean

Responses: 200400402429

GET/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

GET/v1/risk

Everything the Risk Oracle holds

Addresses with a risk level and flags, as the monitor writes them to the onchain Risk Oracle.

Responses: 200

GET/v1/risk/{address}

Risk level of one address

Path: address

Responses: 200400

GET/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

GET/v1/threats

Threat Board

Most caught patterns, recent denials, most denied addresses and the sourced blocklist.

Responses: 200

GET/v1/wallet/{address}

Wallet Check: risky approvals of a wallet

Path: address

Responses: 200400402429

Agents#

ERC-8004 agent passports and reputation

GET/v1/agents/{address}

Shield record of an agent wallet

Path: address

Responses: 200

GET/v1/passport/{id}

Agent passport by ERC-8004 agent ID

Path: id

Responses: 200404

GET/v1/passport

Linked agents, best score first

Responses: 200

Service#

Health, status and payment discovery

GET/health

Liveness and chain head

Responses: 200503

GET/v1/status

Public status

Services, head block, response times, checks per day, 30 days of uptime and incidents. Same data as heimdall.fund/status.

Responses: 200

GET/v1/signer

Receipt signer and EIP-712 domain

The address whose receipts Heimdall contracts accept, with the domain and types to verify them yourself.

Responses: 200

GET/x402/supported

x402 schemes and networks this facilitator settles

Responses: 200503

GET/x402/discovery/resources

x402 Bazaar discovery: every paid resource and its price

Responses: 200