ethereumjs-monorepo

@ethereumjs/mpt


@ethereumjs/mpt / createMPTFromProof

Function: createMPTFromProof()

createMPTFromProof(proof, trieOpts?): Promise<MerklePatriciaTrie>

Defined in: packages/mpt/src/constructors.ts:62

Create a trie from a given (EIP-1186)[https://eips.ethereum.org/EIPS/eip-1186] proof. A proof contains the encoded trie nodes from the root node to the leaf node storing state data.

Parameters

proof

Proof

an EIP-1186 proof to create trie from

trieOpts?

MPTOpts

trie opts to be applied to returned trie

Returns

Promise<MerklePatriciaTrie>

new trie created from given proof