Class FTContractFunctionCall


  • public class FTContractFunctionCall
    extends java.lang.Object
    Contract function call object for FTs (Tokens)
    Since:
    0.2.0
    Author:
    Alexandre Carvalho, Andre Bertolace
    • Field Detail

      • FT_MINIMUM_STORAGE_BALANCE_LARGE

        public static java.lang.String FT_MINIMUM_STORAGE_BALANCE_LARGE
    • Constructor Detail

      • FTContractFunctionCall

        public FTContractFunctionCall()
    • Method Detail

      • forMetadata

        public static FunctionCallResult<com.fasterxml.jackson.databind.JsonNode> forMetadata​(NearService nearService,
                                                                                              java.lang.String contractAccountId)
                                                                                       throws java.io.IOException
        Builds a contract function call and returns a typed result
        Parameters:
        nearService - the near service instance to use for the contract call
        contractAccountId - the contract's account id
        Returns:
        a typed function call result
        Throws:
        java.io.IOException - thrown if failed to deserialize result to target class
      • forBalanceOf

        public static FunctionCallResult<com.fasterxml.jackson.databind.JsonNode> forBalanceOf​(NearService nearService,
                                                                                               java.lang.String contractAccountId,
                                                                                               AccountIdParam accountIdParam)
                                                                                        throws java.io.IOException
        Builds a contract function call and returns a typed result
        Parameters:
        nearService - the near service instance to use for the contract call
        contractAccountId - the contract's account id
        accountIdParam - the arguments for the target method
        Returns:
        a typed function call result
        Throws:
        java.io.IOException - thrown if failed to deserialize result to target class
      • forTransferCall

        public static FunctionCallResult<com.fasterxml.jackson.databind.JsonNode> forTransferCall​(NearService nearService,
                                                                                                  java.lang.String contractAccountId,
                                                                                                  FTTransferParam ftTransferParam)
                                                                                           throws java.io.IOException
        Builds a contract function call and returns a typed result
        Parameters:
        nearService - the near service instance to use for the contract call
        contractAccountId - the contract's account id
        ftTransferParam - the arguments for the target method
        Returns:
        a typed function call result
        Throws:
        java.io.IOException - thrown if failed to deserialize result to target class