Transaction checks

Send the transaction your agent is about to sign. Shield runs it against the latest block with eth_simulateV1 and tells you exactly what would happen.

Request#

HTTP
POST https://api.heimdall.fund/v1/check
Authorization: Bearer hd_live_…        (optional on the free plan)
Content-Type: application/json

{
  "chainId": 4663,
  "from": "0xAgentWallet",
  "to": "0xTargetContract",            // null to deploy a contract
  "data": "0x…",
  "value": "0",                         // wei, decimal or 0x-hex
  "policy": { … }                       // optional, see below
}

Response#

JSON
{
  "checkId": "0x51705c…",
  "verdict": "DENY",                    // ALLOW | WARN | DENY
  "riskScore": 90,                      // 0–100
  "summary": ["Calls approve(address,uint256) on USDG (0x5fc5…d168)", "Approves unlimited USDG → 0x3333…3333"],
  "findings": [{ "code": "UNLIMITED_APPROVAL_TO_EOA", "severity": "deny", "message": "…" }],
  "approvals": [ … ],
  "assetChanges": [{ "symbol": "USDG", "delta": "-100000000", "kind": "erc20", … }],
  "simulation": { "ok": true, "available": true, "gasUsed": "46213" },
  "receipt": { "signer": "0x…", "signature": "0x…", "expiresAt": 1795400000, "message": { … } }
}

A WARN is returned as WARN unless the policy sets strict; then every WARN becomes DENY. Vaults only accept receipts whose verdict is ALLOW.

Policy#

FieldEffect
strictEvery WARN becomes DENY.
allowTargetsIf set, the target must be in this list.
denyTargetsTargets that are always denied.
maxNativeOutPer-transaction cap for ETH leaving the wallet, in wei.
maxTokenOutPer-transaction cap per token, raw units, keyed by token address.
trustedSpendersUnlimited approvals to these spenders do not warn.
denyUnlimitedApprovalsUnlimited approvals are always denied.
trustedRecipientsSending assets to these does not raise ONE_WAY_OUTFLOW.
trustedDelegatesEIP-7702 delegate contracts the agent may authorise beyond the wallet implementations Heimdall knows.
allowContractDeployAllow to = null.

Findings#

CodeSeverityMeaning
SIM_REVERTEDdenyThe transaction would revert; the reason is decoded.
UNLIMITED_APPROVAL_TO_EOA / APPROVAL_TO_EOAdeny / warnApproval (ERC-20, Permit2, setApprovalForAll) to an address with no code.
UNLIMITED_APPROVALwarnUnlimited approval to an untrusted contract, also inside multicall and Universal Router batches.
HONEYPOTdenyA token you receive cannot be transferred again, or cannot be sold back to the pool it came from.
VANISHING_TOKENdeny / warnA token arrives and is taken out of the wallet in the same transaction (denied when you paid for it).
ALLOWANCE_BYPASSdenyA stranger, or the token's owner(), can transferFrom your wallet with no allowance: tokens can be clawed back.
FAKE_TOKENdeny / warnThe symbol (deny) or name (warn) of a known token such as USDG, WETH or a stock token, at a different address. Look-alike letters and zero-width characters are folded first.
HOOK_TAKES_DELTAwarnA Uniswap v4 pool on the route has a hook that can change swap amounts: a hidden fee of any size.
HOOK_DYNAMIC_FEEwarnA Uniswap v4 pool whose hook sets the swap fee at swap time.
HOOK_ON_SWAPinfoA v4 hook runs on every swap and could refuse later trades.
HOOK_NO_CODE / BLOCKLISTED_HOOKdenyThe pool names a hook with no contract, or a known malicious one.
LOOKALIKE_ADDRESSdenyA target, recipient or spender that shares 3+ first and last characters (8+ in total) with a known address, a trusted one in your policy, or one this wallet already used: address poisoning.
TRANSFER_TAXinfo / warn / denyA received token loses value on transfer (≥5% warns, ≥50% denies).
NATIVE_LIMIT / TOKEN_LIMITdenyAbove a policy cap.
DRAINS_BALANCEwarnMoves 90% or more of the wallet's balance of an asset.
ONE_WAY_OUTFLOWwarnAssets leave to an untrusted address and nothing comes back.
BLOCKLISTED_TARGET / SPENDER / RECIPIENT / TOKENdenyA known drainer or exploit address is involved, or the token being bought is a known scam.
ZERO_TARGETdenySending to the zero address.
TARGET_NOT_ALLOWED / DENYLISTED_TARGETdenyOutside the policy's allow list, or on its deny list.
EOA_WITH_DATAwarnCalldata sent to an address with no code.
SIM_UNAVAILABLEwarnThe simulator could not run; nothing is assumed safe.
DELEGATED_EOA, KNOWN_CONTRACT, APPROVAL_REVOKEinfoContext only.

Receipts#

Each verdict is signed as EIP-712 with domain { name: "Heimdall Shield", version: "1", chainId } and type Receipt(address agent, address target, bytes32 dataHash, uint256 value, uint8 verdict, uint64 expiresAt, bytes32 checkId). GET /v1/signer returns the current signer address. Heimdall vaults accept a receipt once, only before it expires, and only for exactly the same call.