ethereumjs-monorepo

@ethereumjs/statemanager


@ethereumjs/statemanager / fromMerkleStateProof

Function: fromMerkleStateProof()

fromMerkleStateProof(proof, safe?, opts?): Promise<MerkleStateManager>

Defined in: proof/merkle.ts:119

Create a MerkleStateManager preloaded with EIP-1186 proof data.

Yields a partial manager from which all proven accounts and slots can be read.

Parameters

proof

Proof | Proof[]

One proof or array of proofs from getMerkleStateProof

safe?

boolean = false

When true, verify proof roots against reported account/storage roots

opts?

MerkleStateManagerOpts = {}

Options passed to the new MerkleStateManager

Returns

Promise<MerkleStateManager>

Manager with proof nodes merged into its backing tries