Create Secure Digital Asset SDA (Alias NFT)

Create Litecoin Secure Digital Asset SDA

Create Secure Digital Asset SDA/NFT (API reference)

POST /api/NonFungibleTokens/Mint

A POST request to create a Secure Digital Asset SDA (Alias NFT) on the Litecoin blockchain connected to your Litecoin address.

Headers

NameTypeDescription

Content-Type

application/json

Authorization*

Bearer <your API key>

API access key

wallet*

String

The wallet to hold the SDA

encryptedpassphrase*

String

Encrypted key of the wallet to hold the SDA

Usev2

String

Value should be true or yes

Request Body

NameTypeDescription

description*

string

the description of the SDA to be created

name*

string

Name of the SDA

address*

string

address to hold the SDA

url*

string

any existing domain to be attached to the SDA

amount*

long

amount of the SDA to be created on the blockchain

royalty*

float

percentage of the resale value of an SDA that is paid to the original creator

nftFileURL*

string

the URL of the actual art to be created or minted

collectionPropertyId*

long

The collection identifier to which you want to assign the SDA

fileType*

string

The type of SDA to be created, for example Image, Video or text (pdf)

serialisedAttribute

string

SDA Meta data; this is a string of data, it is preferrable to be a string that contain series of string data separated with a comma. this can be achieved by using the IPFS. series of data can be uploaded on IPFS server then return the url of the data

collectionPropertyId is the unique identifier of the collection to hold the NFT, this is part of the response received when a collection has been created.

Create SDA (Alias NFT) with Javascript SDK

Liaas SDK package installation

/** 
 * Create SDA on Litecoin Blockchain
 **/
 
 //all the parameters specified here are small as all the parameters in API implementation
 //pass your API key and the created wallet name and encrypted key
const response = await liaasSdk.mintNft(
apiAccessKey,
walletName,
encryptedpassphrase,
name,
description,
royalty,
nftFileURL,
collectionPropertyId,
fileType,
address,
nftMetaData,
url)

Last updated