Class NFTContractFunctionCall


  • public class NFTContractFunctionCall
    extends java.lang.Object
    Contract function call object for NFTs
    Since:
    0.2.0
    Author:
    Alexandre Carvalho, Andre Bertolace
    • Constructor Detail

      • NFTContractFunctionCall

        public NFTContractFunctionCall()
    • Method Detail

      • loadContractMetadata

        public static void loadContractMetadata​(NearService nearService,
                                                NFTContract contract)
                                         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
        contract - the contract to load the metadata
        Throws:
        java.io.IOException - thrown if failed to deserialize result to target class
      • forTokensForOwner

        public static FunctionCallResult<NFTTokenList> forTokensForOwner​(NearService nearService,
                                                                         java.lang.String contractAccountId,
                                                                         NFTTokensForOwnerParam nftTokensForOwnerParam)
                                                                  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
        nftTokensForOwnerParam - 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
      • forTokens

        public static FunctionCallResult<com.fasterxml.jackson.databind.JsonNode> forTokens​(NearService nearService,
                                                                                            java.lang.String contractAccountId,
                                                                                            NFTTokensParam nftTokensParam)
                                                                                     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
        nftTokensParam - 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
      • forTotalSupply

        public static FunctionCallResult<java.lang.String> forTotalSupply​(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
      • forSupplyForOwner

        public static FunctionCallResult<java.lang.String> forSupplyForOwner​(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