Skip to content

getContractStorage

getContractStorage(baseState, skipFetchingFromFork?): (address, key) => Promise<Uint8Array>

Gets the storage value associated with the provided address and key. This method returns the shortest representation of the stored value. corresponding to the provided address at the provided key. If this does not exist an empty Uint8Array is returned.

Parameters

• baseState: BaseState

• skipFetchingFromFork?: boolean

Returns

Function

Parameters

• address: EthjsAddress

• key: Uint8Array

Returns

Promise<Uint8Array>

Defined in

packages/state/src/actions/getContractStorage.js:15