Interface EvmSmartContractInvocationService.Invoker
- All Superinterfaces:
ScopedInvoker<EvmInvocationScope>
- All Known Implementing Classes:
Web3jInvoker
- Enclosing interface:
EvmSmartContractInvocationService
public static interface EvmSmartContractInvocationService.Invoker
extends ScopedInvoker<EvmInvocationScope>
A type which performs the final invocation to the underlying smart contract.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.getelements.elements.sdk.service.blockchain.invoke.ScopedInvoker
ScopedInvoker.Factory<InvocationScopeT extends InvocationScope,
InvokerT extends ScopedInvoker<InvocationScopeT>> -
Method Summary
Modifier and TypeMethodDescriptionCalls the smart contract method with the supplied parameter types and return types.Sends a transaction to the blockchain by calling the specified smart contract method with the supplied parameter types and return types.Methods inherited from interface dev.getelements.elements.sdk.service.blockchain.invoke.ScopedInvoker
initialize
-
Method Details
-
call
Object call(String method, List<String> inputTypes, List<Object> arguments, List<String> outputTypes) Calls the smart contract method with the supplied parameter types and return types.- Parameters:
method
- the method nameinputTypes
- the parameter typesarguments
- the parameters themselvesoutputTypes
- the return types- Returns:
- the return result of the call
-
send
EVMInvokeContractResponse send(String method, List<String> inputTypes, List<Object> arguments, List<String> outputTypes) Sends a transaction to the blockchain by calling the specified smart contract method with the supplied parameter types and return types.- Parameters:
method
- the method nameinputTypes
- the parameter typesarguments
- the parameters themselvesoutputTypes
- the return types- Returns:
- the return result of the call
-