Create Collection

The category of your collection can be music, art, gaming, sport, etc...

NB: LiaaS systematically adds the suffix " col" to each collection name it receives. For instance, if a collection named "PoWcollection" is submitted, LiaaS generates a blockchain token named "PoWcollection col". This also implies that the platforms powered by Kakr Labs also contains "col" suffix while creating Collection/Event and would be shown on the Pteri.

Create SDA (Alias NFT) Collection (API reference)

POST /api/Collection/create-nft-collection

A post request to create a collection on the Litecoin Blockchain to attach a set of SDAs belonging to an address

Headers

Name
Type
Description

Content-Type

application/json

Authorization*

Bearer <your API key>

API access key

wallet*

String

The wallet to hold the collection

encryptedpassphrase*

String

Encrypted key of the wallet to hold the collection

Usev2*

String

Value should be true or yes

Request Body

Name
Type
Description

tokenStandard*

string

the category of your collection, this can be token standard which are "SDA3", "SDA11", "SDA13", "SDA21", "SDA88"

description*

string

the description of the collection to be created

name*

string

Name of the collection

address*

string

address to hold the collection

subcategory*

string

subsidiary category of the collection

url*

string

any existing domain to be attached to the collection

isMainNet

Boolean

Want to create it on Mainnet or Testnet. This is false by default

Create SDA/NFT Collection SDK

Liaas SDK package installation

/** 
 * Secure your created collection to house SDAs
**/

//all the parameters specified here are small as all the parameters in API implementation
//pass your API key or Node URL to the created wallet name and the encrypted key
const response = await liaasSdk.createCollection(
nodeUrl_or_apiAccessKey,
walletName,
encrpytedKey,
tokenStandard,
description,
name,
address,
subcategory,
url,
isMainNet)

FAQs: Common Error Handling and Solutions

  1. Error: "Error validating redemption address" Solution: This error occurs when an incorrect wallet name is provided for the redemption address. Ensure that you are using the correct wallet name associated with the address for which the collection is being created.

  2. Error: "Error with selected inputs for the send transaction" Solution: This error indicates that the specified address does not have sufficient funds to create the transaction. Ensure that the address holds enough balance to cover the transaction amount and any associated fees.

Last updated