Contract

Contract

  • Interact with specific contract.

Constructor

new Contract(address, abi, client)

Source:
Parameters:
Name Type Description
address EthAddressHeximal

Address of the contract.

abi any

Specifications of public methods and it's parameters from a contract.

client Client

The contracts interact with ETH nodes via this one.

Throws:
ClientError

Methods

(async) call(method, dataopt) → {Promise.<any>}

Source:

Call specific method on the contract.

Parameters:
Name Type Attributes Default Description
method string

Method to be call.

data Array <optional>
[]

Positional arguments which is pass to method.

Returns:
Type
Promise.<any>