📍ftm.contract()
Description: Creates a contract instance that allows interaction with a deployed smart contract.
Parameters
Name
Type
Description
json interface
object
The JSON interface for the contract to instantiate.
address
string
(optional)
The address of the smart contract to call.
options
object
(optional)
Configuration options for the contract, used as fallbacks for calls and transactions:
from
string
The address transactions should be made from.
gas
integer
The maximum gas provided for a transaction (gas limit).
gasPrice
integer
The gas price in wei to use for transactions.
data
string
The bytecode of the contract, used when deploying the contract.
Returns
Type
Description
object
The contract instance with all its methods and events.
Last updated