Class Web3jInvoker
java.lang.Object
dev.getelements.elements.service.blockchain.invoke.evm.Web3jInvoker
- All Implemented Interfaces:
EvmSmartContractInvocationService.Invoker
,ScopedInvoker<EvmInvocationScope>
-
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>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCalls the smart contract method with the supplied parameter types and return types.org.web3j.protocol.Web3j
getWeb3j()
void
initialize
(EvmInvocationScope evmInvocationScope) Initializes theEvmSmartContractInvocationService.Invoker
with the invocation scope.Sends a transaction to the blockchain by calling the specified smart contract method with the supplied parameter types and return types.void
setWeb3j
(org.web3j.protocol.Web3j web3j)
-
Constructor Details
-
Web3jInvoker
public Web3jInvoker()
-
-
Method Details
-
initialize
Description copied from interface:ScopedInvoker
Initializes theEvmSmartContractInvocationService.Invoker
with the invocation scope.- Specified by:
initialize
in interfaceScopedInvoker<EvmInvocationScope>
- Parameters:
evmInvocationScope
- theInvocationScope
-
call
public Object call(String method, List<String> inputTypes, List<Object> arguments, List<String> outputTypes) Description copied from interface:EvmSmartContractInvocationService.Invoker
Calls the smart contract method with the supplied parameter types and return types.- Specified by:
call
in interfaceEvmSmartContractInvocationService.Invoker
- Parameters:
method
- the method nameinputTypes
- the parameter typesarguments
- the parameters themselvesoutputTypes
- the return types- Returns:
- the return result of the call
-
send
public EVMInvokeContractResponse send(String method, List<String> inputTypes, List<Object> arguments, List<String> outputTypes) Description copied from interface:EvmSmartContractInvocationService.Invoker
Sends a transaction to the blockchain by calling the specified smart contract method with the supplied parameter types and return types.- Specified by:
send
in interfaceEvmSmartContractInvocationService.Invoker
- Parameters:
method
- the method nameinputTypes
- the parameter typesarguments
- the parameters themselvesoutputTypes
- the return types- Returns:
- the return result of the call
-
getWeb3j
public org.web3j.protocol.Web3j getWeb3j() -
setWeb3j
@Inject public void setWeb3j(org.web3j.protocol.Web3j web3j)
-