Getting the Storage Proof
First we need to fetch the storage proof from Optimism using the block number of a Optimism block which header that has already been propagated to Hashi. This block number ensures that Hashi can verify the proof against the just mentioned block header propagated to Gnosis Chain.
Fetching the Proof
Use the following curl command or javascript script to fetch the account and storage proof for the USDC total supply on Optimism:
address: The address of the USDC contract on Optimism: 0x0b2c639c533813f4aa9d7837caf62653d097ff85.
storageKeys: The storage key for the USDC total supply: 0xb.
This curl command returns the account and storage proof for the USDC total supply, which will be used for verification on Gnosis Chain.
Use the SP1 storage proof generator
Hashi support .