Skip to content

getContractCode

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

Gets the code corresponding to the provided address. Returns an empty Uint8Array if the account has no associated code.

Parameters

• baseState: BaseState

• skipFetchingFromFork?: boolean

Returns

Function

Parameters

• address: EthjsAddress

Returns

Promise<Uint8Array>

Defined in

packages/state/src/actions/getContractCode.js:13