Interface NearSmartContractInvocationService.Invoker
- All Superinterfaces:
ScopedInvoker<NearInvocationScope>
- All Known Implementing Classes:
NearInvoker
- Enclosing interface:
NearSmartContractInvocationService
public static interface NearSmartContractInvocationService.Invoker
extends ScopedInvoker<NearInvocationScope>
Used to make invocations on the Near blockchain.
-
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>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BigInteger
Deprecated.migrate this to a configurable parameter -
Method Summary
Modifier and TypeMethodDescriptiondefault NearContractFunctionCallResult
Calls a script on the blockchain.Executes a script, but does not write, to the blockchain.default NearInvokeContractResponse
send()
Sends a transaction to the blockchain.Sends a transaction to the blockchain.default NearInvokeContractResponse
sendDirect
(String receiverId) Sends a transaction to the blockchain with a specified receiver id.Sends a transaction to the blockchain with a specified receiver id.Methods inherited from interface dev.getelements.elements.sdk.service.blockchain.invoke.ScopedInvoker
initialize
-
Field Details
-
DEFAULT_GAS_LIMIT
Deprecated.migrate this to a configurable parameterGas Limits
-
-
Method Details
-
sendDirect
Sends a transaction to the blockchain with a specified receiver id.- Parameters:
receiverId
- the id of the address to send the transactions to- Returns:
- the return value
-
sendDirect
NearInvokeContractResponse sendDirect(String receiverId, List<Map.Entry<String, Map<String, Object>>> actions) Sends a transaction to the blockchain with a specified receiver id.- Parameters:
receiverId
- the id of the address to send the transactions toactions
- the actions to be performed by the transaction (see https://nomicon.io/RuntimeSpec/Actions) with their associated arguments. List(ActionName, Map(PropertyName, PropertyValue)).- Returns:
- the return value
-
send
Sends a transaction to the blockchain. Receiver id is determined by the invocation scope.- Returns:
- the return value
-
send
Sends a transaction to the blockchain. Receiver id is determined by the invocation scope.- Parameters:
actions
- the actions to be performed by the transaction (see https://nomicon.io/RuntimeSpec/Actions) with their associated arguments. List(ActionName, Map(PropertyName, PropertyValue)).- Returns:
- the return value
-
call
Calls a script on the blockchain.- Parameters:
methodName
- the Cadence script to execute- Returns:
- the return value
-
call
Executes a script, but does not write, to the blockchain.- Parameters:
methodName
- the Cadence script to executearguments
- the arguments passed to the script itself- Returns:
- the return value
-