Skip to content

BaseContract

Defined in: classes/Contract.ts:22

Extended by

Constructors

Constructor

new BaseContract(addressOrName, contractInterface, signerOrProvider): BaseContract

Defined in: classes/Contract.ts:35

Parameters

addressOrName

string

The ethereum address of the smart-contract

contractInterface

JSONABI

The JSON ABI of the smart-contract (like http://api.etherscan.io/api?module=contract&action=getabi&address=0x090d4613473dee047c3f2706764f49e0821d256e&format=raw)

signerOrProvider

JsonRpcProvider

An instantiated essential-eth provider

Returns

BaseContract

Example