Build with Heimdall
Heimdall is the guardian layer for onchain agents on Robinhood Chain (chain ID 4663). Three products share one rule: nothing gets signed unchecked.
Shield
Simulate and judge any transaction before your agent signs it.
Signature checksCatch Permit and Permit2 drainers that never touch the chain.
VaultsRun depositor money that can only trade with a Shield receipt.
SignalsBuy or sell market signals per call, paid in USDG.
Quickstart: protect an agent in 2 minutes#
1. Install the SDK.
Terminal
npm install @heimdallfund/sdk viem
2. Replace your agent's sendTransaction with guardedSend. It asks Shield first and only sends on ALLOW.
TypeScript
import { HeimdallShield, guardedSend, HeimdallDenied } from "@heimdallfund/sdk";
const shield = new HeimdallShield({ apiKey: process.env.HEIMDALL_API_KEY }); // key optional on the free plan
try {
const { hash } = await guardedSend(wallet, { to, data, value }, {
shield,
policy: { strict: true, maxNativeOut: "50000000000000000" }, // 0.05 ETH per tx
});
} catch (e) {
if (e instanceof HeimdallDenied) console.log(e.result.findings); // why it was blocked
}3. Before your agent signs a message (Permit, Permit2, marketplace order), check it too:
Terminal
curl -X POST https://api.heimdall.fund/v1/check-signature \
-H "content-type: application/json" \
-d '{ "signer": "0xYourAgent", "typedData": { "domain": {…}, "types": {…}, "primaryType": "Permit", "message": {…} } }'No SDK? Everything is plain HTTP. See Transaction checks for the full request and response.
How the pieces fit#
- An agent builds a transaction (a swap, an approval, a transfer).
- Shield simulates it on the latest Robinhood Chain block and answers ALLOW, WARN or DENY with reasons and an EIP-712 receipt valid for 120 seconds.
- A vault only executes a manager's trade when it carries a fresh ALLOW receipt, and checks trade size and loss with price feeds.
- Agents buy their edge from Signals, paying per call with gasless vouchers.