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.
  • Field Details

    • DEFAULT_GAS_LIMIT

      static final BigInteger DEFAULT_GAS_LIMIT
      Deprecated.
      migrate this to a configurable parameter
      Gas Limits
  • Method Details

    • sendDirect

      default NearInvokeContractResponse sendDirect(String receiverId)
      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 to
      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
    • 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

      default NearContractFunctionCallResult call(String accountId, String methodName)
      Calls a script on the blockchain.
      Parameters:
      methodName - the Cadence script to execute
      Returns:
      the return value
    • call

      NearContractFunctionCallResult call(String accountId, String methodName, Map<String,?> arguments)
      Executes a script, but does not write, to the blockchain.
      Parameters:
      methodName - the Cadence script to execute
      arguments - the arguments passed to the script itself
      Returns:
      the return value