Skip to main content

heimdallfund

Heimdall Shield for Python. Before your agent signs a transaction or a signature on Robinhood Chain, Shield simulates it on the current chain state and answers ALLOW, WARN or DENY with the reasons: drainer approvals, honeypots, vanishing and fake tokens, address poisoning, blocklisted addresses, reverts and your own spend limits.

pip install heimdallfund

Check, then sign

from heimdallfund import Shield, HeimdallDenied

shield = Shield()  # free tier; Shield(api_key="hd_live_…") or HEIMDALL_API_KEY lifts the limit

result = shield.check(
    sender="0xYourAgentWallet",
    to="0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",  # USDG
    data="0x095ea7b3…",                               # the calldata you are about to sign
    value=0,
    policy={"maxNativeOut": str(10**17), "denyUnlimitedApprovals": True},
)
print(result["verdict"], [f["message"] for f in result["findings"]])

guard() does the same and raises HeimdallDenied unless the verdict is ALLOW, so a refused or failed check never reaches your signer:

try:
    shield.guard(sender, to, data, value)
    send_transaction(...)
except HeimdallDenied as e:
    tell_the_user(e.result["findings"])

Signatures

shield.check_signature(signer, typed_data=permit_request)   # EIP-712: Permit, Permit2, orders
shield.check_signature(signer, message="Sign in to example.com")

Lookups

shield.risk("0x…")         # risk level and flags from the Risk Oracle list
shield.wallet_check("0x…") # every live approval of a wallet, ranked
shield.threats()           # what Shield is catching, and the sourced blocklist
shield.passport("0x…")     # ERC-8004 agent passport and score

Async

from heimdallfund import AsyncShield

async with AsyncShield() as shield:
    result = await shield.check(sender, to, data, value)

Limits and payment

Without a key, the free tier applies to your IP. Above it Shield answers 402 and the client raises PaymentRequired with the x402 requirements: pay per call in USDG, or use an API key from heimdall.fund/app/keys.

Rules for agents: never sign on DENY; on WARN, ask the user; if the check fails, treat the transaction as unsafe.

Docs: heimdall.fund/docs · API reference: heimdall.fund/docs/api · License: BUSL 1.1

Metadata

Release files for heimdallfund 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heimdallfund 0.2.0
File Size Uploaded Provenance Actions
heimdallfund-0.2.0.tar.gz 8.6 kB With provenance Details for heimdallfund-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for heimdallfund 0.2.0
File Interpreter ABI Platform Actions
heimdallfund-0.2.0-py3-none-any.whl Python 3 none any Details for heimdallfund-0.2.0-py3-none-any.whl

Total release size: 18.1 kB

Release files / heimdallfund-0.2.0.tar.gz

Download URL heimdallfund-0.2.0.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c4e558f0bf2583d932839de6741937b034439506bb8aa14280b75df29e3c8635
BLAKE2b-256 checksum
How to use checksums
f85b966e98985d6d968162e78b958c7497065a335613e26dd63f367ad0596f39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / heimdallfund-0.2.0-py3-none-any.whl

Download URL heimdallfund-0.2.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d73990934371a8a36d0fb0e9c2d4779a04e7b762eea6576e0f9e16dc38cf7b3
BLAKE2b-256 checksum
How to use checksums
bbb817ce1a553808590e94f70244aae37953774bbb86e7ba9e2c14371f82b94d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for heimdallfund 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for heimdallfund-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page