---
agentTools:
  projectIndex: https://bakrypt.readme.io/llms.txt
---

# Asset

* Required Data

  blockchain\*: Pick the blockchain to use. Options: \[ADA]

  amount\*: How many copies of the same asset. 1 for NFTs and more than one for fungible tokens

  image\*	: IPFS url is set here.

  name\*:  Name of the asset. The asset name will be generated from this value if "asset\_name" is null. You can also use asset\_name to set a different asset name.

[block:code]
{
  "codes": [
    {
      "code": "interface IAssetFile {\n  name: string;\n  src: string;\n  mediaType: string;\n}\n\ninterface IAsset {\n  uuid?: string;\n  blockchain: string;\n  name: string;\n  asset_name: string;\n  image: string;\n  media_type: string;\n  fingerprint: string;\n  description: string;\n  files: Array<IAssetFile>;\n  attrs: object;\n  amount: number;\n  royalties?: string;\n  royalties_rate?: string;\n  transaction?: string | ITransaction;\n}",
      "language": "text",
      "name": "TS interface"
    },
    {
      "code": "Asset {\n    uuid\tstring\n      title: Uuid\n      readOnly: true\n      minLength: 1\n    status\tstring\n      title: Status\n      readOnly: true\n      minLength: 1\n    blockchain*\tstring\n      title: Blockchain\n      minLength: 1\n    amount*\tinteger\n      title: Amount\n    image*\tstring\n      title: Image\n      maxLength: 64\n      minLength: 1\n    media_type\tstring\n      title: Mediatype\n      maxLength: 64\n      minLength: 1\n    name*\tstring\n      title: Name\n      maxLength: 64\n      minLength: 1\n    asset_name\tstring\n      title: Asset name\n      maxLength: 32\n      minLength: 1\n    description\tstring\n      title: Description\n      maxLength: 64\n      minLength: 1\n    size\tstring\n      title: Size\n      readOnly: true\n      minLength: 1\n    collection\tstring\n      title: Collection\n      readOnly: true\n      minLength: 1\n    files\tstring(JSON list) \n      title: Files\n    attrs\tstring(JSON object)\n      title: Attrs\n    is_deleted\tboolean\n      title: Is deleted\n      readOnly: true\n    created_on\tstring\n      title: Created on\n      readOnly: true\n      minLength: 1\n    updated_on\tstring\n      title: Updated on\n      readOnly: true\n      minLength: 1\n    is_auto\tboolean\n      title: Is auto\n    has_royalties\tboolean\n      title: Has royalties\n      readOnly: true\n    royalties\tstring\n      title: Royalties\n      maxLength: 120\n      minLength: 1\n    royalties_rate\tstring($decimal)\n      title: Royalties rate\n    royalties_minted\tboolean\n      title: Royalties minted\n      readOnly: true\n    royalties_minted_on\tstring\n      title: Royalties minted on\n      readOnly: true\n      minLength: 1\n    royalties_burned\tboolean\n      title: Royalties burned\n      readOnly: true\n    royalties_burned_on\tstring\n      title: Royalties burned on\n      readOnly: true\n      minLength: 1\n    transaction\tstring\n      title: Transaction\n      readOnly: true\n}",
      "language": "text",
      "name": "Asset"
    }
  ]
}
[/block]