Group various atomic assets in a collection.
Asset #0
, Asset #1
, Asset #2
etc.CreateTradableAssetOpts
. It contains the following parameters
string[]
: An array of asset IDs to be grouped in the collection.CollectionSpecificTags
: The collection specific tags as per Collection Data Protocol. It contain feilds such as name, collectionType, thumbnail, banner and collectionCode. For details on the options see the Collection Specific Tags section.DiscoverabilityTags
: The discoverability tags for the Collection as per ANS-110 Specification. Contains feilds like title, description, type and topics. For details on the options see the Discoverability Tags section.Document
as per the Collection Data ProtocolStampableType
: The stamping options for the collection. If stamp is specified the your collection can be stamped by others. Defaults to false. For details on the options see the Stamping Options section.Tag[]
: Additional tags for the Atomic Asset. Duplicate tags will throw an error. For details on the options see the Tag section.UploadResponse
, Transaction
, or TurboUploadDataItemResponse
depending on whether Irys or Turbo are used or not.
UploadResponse
- Returned when Irys is used. It contains fields such as:
string
- The transaction ID of the collection.string
- The signature used while creating the collection.number
- The timestamp of the transaction.Transaction
- Returned when Arweave is used. It contains fields such as:
string
- The transaction ID of the collection.string
- The owner of the collection.Tag[]
- The tags of the collection.Uint8Array
- The data of the collection.string
- The signature used while creating the collection.TurboUploadDataItemResponse
- Returned when Turbo is used. It contains fields such as:
string
- The transaction ID of the collection,number
- The timestamp of the transaction,string
- The amount of Turbo Credits, in Winston Credits, spent on the upload,string
- The version number of the upload receipt returned,number
- The latest block height in which the uploaded data will be settled on Arweave,array
- A list of nodes where the data was cached while upload to Arweave is pending,array
- A list of nodes where data is made available while waiting for it to settle on Arweave,string
- The public key of the wallet used for upload,string
- The signature used while creating the collection,string
- The owner of the collection.(progress: CollectionProgress, error?: string) => void
: The callback function to be called for progress, CollectionProgress has two parameters:
string
: The current step of the transaction.number
: The progress of the transaction out of 100.CreateCollectionOpts
: It contains the following parameters:
File[]
| string
: An array of files or the path to the directory containing the files to be grouped in the collection.File
| string
: The thumbnail file or the path to the thumbnail file for the collection.File
| string
: The banner file or the path to the banner file for the collection.LicenseTags
: Universal Data License Tags for the Asset. By default base UDL tags will be used. For details on the options see the License Tags section.string
: The ticker for the asset.Record<string,number>
: The initial balances for each wallet. The key is the wallet address and the value is the balance.CollectionSpecificTags
: The collection specific tags as per Collection Data Protocol. It contain feilds such as name, collectionType, and collectionCode. For details on the options see the Collection Specific Tags section.DiscoverabilityTags
: The discoverability tags for the Collection as per ANS-110 Specification. Contains feilds like title, description, type and topics. For details on the options see the Discoverability Tags section.Document
as per the Collection Data
ProtocolStampableType
: The stamping options for the collection. If stamp is specified the your collection can be stamped by others. Defaults to false. For details on the options see the Stamping Options section.Tag[]
: Additional tags for the Atomic Asset. Duplicate tags will throw an error. For details on the options see the Tag section.mutateAsync
which when called returns a promise that will resolve to UploadResponse
, Transaction
, or TurboUploadDataItemResponse
depending on whether Irys or Turbo are used or not.
UploadResponse
- Returned when Irys is used. It contains fields such as:
string
- The transaction ID of the collection.string
- The signature used while creating the collection.number
- The timestamp of the transaction.Transaction
- Returned when Arweave is used. It contains fields such as:
string
- The transaction ID of the collection.string
- The owner of the collection.Tag[]
- The tags of the collection.Uint8Array
- The data of the collection.string
- The signature used while creating the collection.TurboUploadDataItemResponse
- Returned when Turbo is used. It contains fields such as:
string
- The transaction ID of the collection,number
- The timestamp of the transaction,string
- The amount of Turbo Credits, in Winston Credits, spent on the upload,string
- The version number of the upload receipt returned,number
- The latest block height in which the uploaded data will be settled on Arweave,array
- A list of nodes where the data was cached while upload to Arweave is pending,array
- A list of nodes where data is made available while waiting for it to settle on Arweave,string
- The public key of the wallet used for upload,string
- The signature used while creating the collection,string
- The owner of the collection.