Getting the Event Proof
Last updated
Last updated
The first step is to fetch the Event Proof from Sepolia. An important parameter is the block number which ensures that Hashi can verify the proof against the block header stored on Chiado. This is possible if the block header related the emitted event on the origin chain (Sepolia in this case) has already been propagated to the target chain (Chiado in this case). To check the block propagation status is possible to use the .
Fetching the Proof
Use the following curl
command to fetch the account and storage proof for the following ERC20 Transaction
: .
chainId: 11155111 (Sepolia).
txHash: The tx-hash that emitted the Transfer Event on Sepolia: .
logIndex: The log index for the event.
blockNumber: The block number on Sepolia, 7016999, which must have already been propagated to Chiado via Hashi for the proof to be valid. The block number must reference a block that appears after the block containing the event. In this case >
This curl
command / script returns the Event Proof for the Transfer
Event on Sepolia, which will be used for verification on Chiado.