Skip to content

setStateRoot

setStateRoot(baseState, skipFetchingFromFork?): (stateRoot, clearCache?) => Promise<void>

Changes the currently loaded state root

Parameters

baseState: BaseState

skipFetchingFromFork?: boolean

Returns

Function

Parameters

stateRoot: Uint8Array

clearCache?: boolean

Returns

Promise<void>

Defined in

packages/state/src/actions/setStateRoot.js:23