sarga-cardano-wallet-js-dist/models/api-asset.d.ts

43 lines
1.7 KiB
TypeScript
Raw Normal View History

2023-08-07 23:20:23 +00:00
/**
* Cardano Wallet Backend API
* <p align=\"right\"><img style=\"position: relative; top: -10em; margin-bottom: -12em;\" width=\"20%\" src=\"https://cardanodocs.com/img/cardano.png\"></img></p>
*
* OpenAPI spec version: 2021.3.4
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
/**
*
* @export
* @interface ApiAsset
*/
export interface ApiAsset {
/**
* A unique identifier of the asset's monetary policy. The policy controls how assets of this kind are created and destroyed. The contents are the blake2b-224 hash of the monetary policy script, encoded in hexadecimal.
* @type {string}
* @memberof ApiAsset
*/
policy_id: any;
/**
* The asset on-chain type which acts as a sub-identifier within a policy. Although we call it \"asset name\", the value needn't be text, and it could even be empty. For policies with a single fungible asset item, asset name is typically an empty string. This value can be up to 32 bytes of arbitrary data (which is 64 hexadecimal digits).
* @type {string}
* @memberof ApiAsset
*/
asset_name: any;
/**
* A user-facing short fingerprint which combines the `policy_id` and `asset_name` to allow for an easier human comparison of assets. Note that it is generally **not okay** to use this fingerprint as a unique identifier for it is not collision resistant. Yet within the context of a single wallet, it makes for a (rather) short user-facing comparison mean.
* @type {string}
* @memberof ApiAsset
*/
fingerprint: any;
/**
*
* @type {NativeAssetsMetadata}
* @memberof ApiAsset
*/
metadata?: any;
}