• Generates a Merkle-Patricia trie proof for a given account and storage slot.

    Parameters

    • provider: JsonRpcProvider

      RPC provider attached to an EVM-compatible chain.

    • blockNumber: number

      Block number to generate the proof at.

    • address: string

      Address to generate the proof for.

    • slot: string

      Storage slot to generate the proof for.

    Returns Promise<{
        accountProof: string[];
        storageProof: string[];
        storageRoot: string;
        storageValue: BigNumber;
    }>

    Account proof and storage proof.

Generated using TypeDoc