Skip to main content

Class: BaseContract

Hierarchy

Constructors

constructor

new BaseContract(addressOrName, contractInterface, signerOrProvider)

example

Parameters

NameTypeDescription
addressOrNamestringThe ethereum address of the smart-contract
contractInterfaceJSONABIThe JSON ABI of the smart-contract (like http://api.etherscan.io/api?module=contract&action=getabi&address=0x090d4613473dee047c3f2706764f49e0821d256e&format=raw)
signerOrProviderJsonRpcProviderAn instantiated essential-eth provider

Defined in

src/classes/Contract.ts:35

Properties

_address

Private Readonly _address: string

The URL to your Eth node. Consider POKT or Infura

Defined in

src/classes/Contract.ts:26


_provider

Private Readonly _provider: JsonRpcProvider

Defined in

src/classes/Contract.ts:27