Skip to content

getContractCode

getContractCode(baseState): (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

Returns

Function

Parameters

address: EthjsAddress

Returns

Promise<Uint8Array>

Source

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