Class FTContractFunctionCall
- java.lang.Object
-
- com.syntifi.near.api.rpc.service.contract.ft.FTContractFunctionCall
-
public class FTContractFunctionCall extends java.lang.Object
Contract function call object for FTs (Tokens)- Since:
- 0.2.0
- Author:
- Alexandre Carvalho, Andre Bertolace
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FTContractFunctionCall.StakingMethodCaller
Contract method definitions
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FT_MINIMUM_STORAGE_BALANCE_LARGE
-
Constructor Summary
Constructors Constructor Description FTContractFunctionCall()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FunctionCallResult<com.fasterxml.jackson.databind.JsonNode>
forBalanceOf(NearService nearService, java.lang.String contractAccountId, AccountIdParam accountIdParam)
Builds a contract function call and returns a typed resultstatic FunctionCallResult<com.fasterxml.jackson.databind.JsonNode>
forMetadata(NearService nearService, java.lang.String contractAccountId)
Builds a contract function call and returns a typed resultstatic FunctionCallResult<com.fasterxml.jackson.databind.JsonNode>
forTransferCall(NearService nearService, java.lang.String contractAccountId, FTTransferParam ftTransferParam)
Builds a contract function call and returns a typed result
-
-
-
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 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
-
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 callcontractAccountId
- the contract's account idaccountIdParam
- 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 callcontractAccountId
- the contract's account idftTransferParam
- 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
-
-