Quickstarts
Encode a Call's Content Hash
STEP 1 OF 3
NEXT WALKTHROUGH: How to read a remote contract's state →
8 FIELDS · THIS ORDER · LOAD-BEARING
1. isStatic
2. sourceAddress
3. sourceRollupId
4. targetAddress
5. targetRollupId
6. value
7. callGas
8. data
DAPP DEVELOPERS

How to encode a call's content hash

In the Quickstart, card 03 showed how the manager matches your call to an entry by its hash. This card shows the full 8-field hash at the pinned commit.

One value, several names: card 03's proxyEntryHash, the content hash here, and the crossChainCallHash the managers compute with computeCrossChainCallHash are the same call hash.

Eight fields describe a cross-chain call, in this exact order. Hash them together and one bytes32 identifies the call.

WHAT YOU'LL LEARN
  • 01 · 8 FIELDS, FIXED ORDEREight fields describe a cross-chain call, in this exact order.
  • 02 · ONE HASH OUTHash them together — one bytes32 identifies the call.
  • 03 · ORDER IS LOAD-BEARINGReorder them and you get a different hash.

RUN IT YOURSELF · forge test --match-test test_matchesIndependentlyDerivedDigest -vv — from eez-demos/snippets, Foundry only.

Verified against eez-core-protocol Git commit 9a1f815; interfaces may move.

UP NEXTHow to read a remote contract's state