ethereumjs-monorepo

@ethereumjs/blockchain


@ethereumjs/blockchain / createBlockchain

Function: createBlockchain()

createBlockchain(opts?): Promise<Blockchain>

Defined in: constructors.ts:32

Initialize a blockchain, seeding genesis when the DB is empty.

Parameters

opts?

BlockchainOptions = {}

Returns

Promise<Blockchain>

Throws

If the DB genesis hash does not match the provided genesis block