Skip to main content

ContractOperation

Constructor

new ContractOperation(client: IClient, config: IContractOperationConfig);
ParamTypeDescription
clientIClient
configIContractOperationConfig





Methods

execute()

Execute a contract function directly on the blockchain.

Returns A ContractOperationResult instance which contains the transaction hash

Type: 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>