Class: BaseContract
Hierarchy
BaseContract
↳
Contract
Constructors
constructor
• new BaseContract(addressOrName
, contractInterface
, signerOrProvider
)
example
Parameters
Name | Type | Description |
---|---|---|
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 |
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