Class NFTContractFunctionCall
- java.lang.Object
-
- com.syntifi.near.api.rpc.service.contract.nft.NFTContractFunctionCall
-
public class NFTContractFunctionCall extends java.lang.Object
Contract function call object for NFTs- Since:
- 0.2.0
- Author:
- Alexandre Carvalho, Andre Bertolace
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NFTContractFunctionCall.StakingMethodCaller
Contract method definitions
-
Constructor Summary
Constructors Constructor Description NFTContractFunctionCall()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FunctionCallResult<java.lang.String>
forSupplyForOwner(NearService nearService, java.lang.String contractAccountId, AccountIdParam accountIdParam)
Builds a contract function call and returns a typed resultstatic FunctionCallResult<com.fasterxml.jackson.databind.JsonNode>
forTokens(NearService nearService, java.lang.String contractAccountId, NFTTokensParam nftTokensParam)
Builds a contract function call and returns a typed resultstatic FunctionCallResult<NFTTokenList>
forTokensForOwner(NearService nearService, java.lang.String contractAccountId, NFTTokensForOwnerParam nftTokensForOwnerParam)
Builds a contract function call and returns a typed resultstatic FunctionCallResult<java.lang.String>
forTotalSupply(NearService nearService, java.lang.String contractAccountId)
Builds a contract function call and returns a typed resultstatic void
loadContractMetadata(NearService nearService, NFTContract contract)
Builds a contract function call and returns a typed result
-
-
-
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 callcontract
- 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 callcontractAccountId
- the contract's account idnftTokensForOwnerParam
- 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 callcontractAccountId
- the contract's account idnftTokensParam
- 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 callcontractAccountId
- 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 callcontractAccountId
- the contract's account idaccountIdParam
- the arguments for the target method- Returns:
- a typed function call result
- Throws:
java.io.IOException
-
-