Class GetAssetByID


  • public class GetAssetByID
    extends Query
    Given a asset ID, it returns asset information including creator, name, total supply and special addresses. /v2/assets/{asset-id}
    • Constructor Detail

      • GetAssetByID

        public GetAssetByID​(Client client,
                            Long assetId)
        Parameters:
        assetId - An asset identifier
    • Method Detail

      • execute

        public Response<Asset> execute​(String[] headers,
                                       String[] values)
                                throws Exception
        Execute the query with custom headers, there must be an equal number of keys and values or else an error will be generated.
        Specified by:
        execute in class Query
        Parameters:
        headers - an array of header keys
        values - an array of header values
        Returns:
        the query response object.
        Throws:
        Exception