ContractOperation
Constructor
new ContractOperation(client: IClient, config: IContractOperationConfig);
Param | Type | Description |
---|---|---|
client | IClient | |
config | IContractOperationConfig |
Methods
execute()
Execute a contract function directly on the blockchain.
Returns A
ContractOperationResult
instance which contains the transaction hashType: Promise<ContractOperationResult>
getTxData()
Get the transaction data for a contract call, which can be used to send a transaction
Returns The transaction data
Type: Promise<SendTransactionParameters>
simulate()
Simulate a contract function call.
Returns The result of the contract call
Type: Promise<SimulateContractReturnType>