LIVE · SDK 0.3.0

Docs · Verify a receipt

VERIFY

Verify a receipt

Don't take our word for a simulated result. Paste or drop a receipt below. The check runs in this browser with WebCrypto SHA-256. Nothing is uploaded or stored. Same inputs, same hashes: verified and reproducible.

Check it in this browser

Drop or choose receipt.json and inputs.json for a funding-reconciliation receipt, or receipt.json, manifest.json and optionally inputs.json for a simulated trade. Or paste them. The files never leave this page.

Drop the receipt files here.

      What this page checksFor a funding-reconciliation receipt (perpbrain.funding-recon-receipt), the browser re-hashes the inputs, re-runs the funding match and checks the result hash. For a simulated trade receipt, it re-derives the SHA-256 hashes (receipt, and manifest and inputs when present) and does not rerun the book simulator; use perpbrain verify-receipt below for that full check.

      Verify with your AI agent

      TESTNET

      Paste this into your own agent. It will follow the published instructions and check the vault's Hyperliquid activity without trusting Diamond Hands or Perp Brain.

      Independently verify the Diamond Hands Carry vault's Hyperliquid activity, without trusting Diamond Hands or Perp Brain. Read and follow https://perpbrain.com/verify-dh.md exactly. It lists every file, API call and command you need. Run every check yourself, then report: the receipt verification result (VERIFIED or MISMATCH), whether the vault's booked funding matches what Hyperliquid paid over the receipt window, whether the vault's on-chain records match the receipt, and any step you couldn't complete or any difference you found.

      Run the full verifier

      No account, API key or exchange key. The published Python package reruns the simulator on the receipt directory or receipt.json:

      pip install perpbrain
      perpbrain verify-receipt receipt.json

      Or clone the SDK (Node 22.6 or newer) and check the fixture that ships with it:

      git clone https://github.com/PERPBRAIN/perpbrain-sdk.git
      cd perpbrain-sdk
      node --experimental-strip-types examples/verify-receipt.ts fixtures/receipts/good

      Expected output:

      {"dir":"fixtures/receipts/good","status":"VERIFIED","mismatches":[]}

      To check your own receipt, point the same command at a directory holding its receipt.json, manifest.json and inputs.json. Exit code 0 means VERIFIED; exit code 1 means MISMATCH, with each failing field named.

      The example receipt

      From fixtures/receipts/good/receipt.json in the SDK: a SIMULATED ETH long of 0.01 on a recorded two-sided book, under the standard limits preset.

      FieldValue
      result_sha256f785e785d0e5eeac7c2552cceffc10d1c0bb3d759e52ba13c36e37c46f38631d
      data_snapshot_idc6b42a445f209ef5148ecc767ca187fbbe5f290e93ac52305eaf95a00b2a5633
      manifest_sha25686bd46cadab71bc95f27a53114683b9d3e04d0e0a5e8e8c618086e743461634b
      limits_hash2a2aa4853a9ca3a4a5e0bb9cb27ae59d201452cd0c18753bc1f313c755ac7edb
      market_snapshot_id149df7a64ce65928fb7dec00a1809adb564a6b9b5df017607baeba43f4873953
      statementverified and reproducible

      The input hash is plain SHA-256 of the file, so you can confirm it with no PerpBrain code at all:

      sha256sum fixtures/receipts/good/inputs.json
      # c6b42a445f209ef5148ecc767ca187fbbe5f290e93ac52305eaf95a00b2a5633

      See it catch a change

      node --experimental-strip-types examples/verify-receipt.ts fixtures/receipts/tampered-result
      {"dir":"fixtures/receipts/tampered-result","status":"MISMATCH","mismatches":["result_sha256 mismatch","result.fills[0].price mismatch"]}

      What the verifier does

      The full list of checks is in Receipts. Agents can run the same check with the MCP tool verify_receipt.

      What a receipt provesA VERIFIED receipt proves the simulation is reproducible from its inputs. Real execution can differ. Limits you set; losses are still possible.