public class BFAssetService extends BFBaseService implements AssetService
| Constructor and Description |
|---|
BFAssetService(java.lang.String baseUrl,
java.lang.String projectId) |
| Modifier and Type | Method and Description |
|---|---|
Result<Asset> |
getAsset(java.lang.String assetId) |
Result<java.util.List<AssetAddress>> |
getAssetAddresses(java.lang.String asset,
int count,
int page)
Asset addresses
List of addresses containing a specific asset ordered ascending from the point of view of the blockchain, not the page listing itself.
|
Result<java.util.List<AssetAddress>> |
getAssetAddresses(java.lang.String asset,
int count,
int page,
OrderEnum order)
Asset addresses
List of addresses containing a specific asset
|
Result<java.util.List<PolicyAsset>> |
getPolicyAssets(java.lang.String policyId,
int count,
int page)
Assets of a specific policy
List of asset minted under a specific policy ordered ascending from the point of view of the blockchain, not the page listing itself.
|
Result<java.util.List<PolicyAsset>> |
getPolicyAssets(java.lang.String policyId,
int count,
int page,
OrderEnum order)
Assets of a specific policy
List of asset minted under a specific policy
|
getBaseUrl, getProjectId, getRetrofit, processResponsepublic BFAssetService(java.lang.String baseUrl,
java.lang.String projectId)
public Result<Asset> getAsset(java.lang.String assetId) throws ApiException
getAsset in interface AssetServiceassetId - Concatenation of the policy_id and hex-encoded asset_nameApiExceptionpublic Result<java.util.List<AssetAddress>> getAssetAddresses(java.lang.String asset, int count, int page, OrderEnum order) throws ApiException
AssetServicegetAssetAddresses in interface AssetServiceasset - Concatenation of the policy_id and hex-encoded asset_name (required)count - The number of results displayed on one page. (<=100).page - The page number for listing the results.order - The ordering of items from the point of view of the blockchain, not the page listing itself. By default, we return oldest first, newest lastApiExceptionpublic Result<java.util.List<AssetAddress>> getAssetAddresses(java.lang.String asset, int count, int page) throws ApiException
AssetServicegetAssetAddresses in interface AssetServiceasset - Concatenation of the policy_id and hex-encoded asset_name (required)count - The number of results displayed on one page. (<=100).page - The page number for listing the results.ApiExceptionpublic Result<java.util.List<PolicyAsset>> getPolicyAssets(java.lang.String policyId, int count, int page, OrderEnum order) throws ApiException
AssetServicegetPolicyAssets in interface AssetServicepolicyId - Specific policy_id (required)count - The number of results displayed on one page. (<=100).page - The page number for listing the results.order - The ordering of items from the point of view of the blockchain, not the page listing itself. By default, we return oldest first, newest last.ApiExceptionpublic Result<java.util.List<PolicyAsset>> getPolicyAssets(java.lang.String policyId, int count, int page) throws ApiException
AssetServicegetPolicyAssets in interface AssetServicepolicyId - Specific policy_id (required)count - The number of results displayed on one page. (<=100).page - The page number for listing the results.ApiException