NFT Issuance
Create your first NFT
Non fungible tokens (NFTs) are a way to reward your fans, create collectors, distribute art and declare ownership. NFTs can also be used in extended use as access token or ticket to a festival, which enables countless business opportunities. The issuance of NFTs with the STAS protocol is very similar to normal tokens, with an extended metadata format (to store media files) and other freely customizable attributes.
The general issuance format is the same as the STAS token:
Name
The token name
UTF-8 standard, up to 32 characters in length.
Symbol
The token symbol
1-9 alphanumeric characters
Description
The token description
up to 512 characters
Image
The mini icon image
250x250 pixels, type image
Token Supply
The amount of tokens to mint in the issuance
Any integer
Decimals
Decimals indicate the formatting, e.g. decimals 2 for a dollar token with cents.
Integer not bigger than 8
Sats Per Token
Satoshis to be used for each token.
Integer
Splitable
Tokens are split table and merge able, NFTs are not.
Boolean [true/false]
Data
Custom data string(s) to be added to the issued tokens
Object<Array>
Meta
Any extra data to indicate legals and terms.
RFC 3986 JSON formatted
This endpoint will issue a STAS token in your wallet, depending on the parameters you assign.
NFTs need to be issued with splittable = false tag. While a token (splittable = true) can also be used as NFT, there is a risk of getting merged or split and thus destroying the value of the NFT.
Custom Data for NFTs
Incorporating personalized data into your NFT can significantly enhance its functionality. The "data" field allows for the inclusion of an object value, which will be assigned as a numbered string key with an accompanying array property. Each element in the array will be added to the token script as its own data chunk. In this method below it will add the same data to each of the NFTs in a collection
Custom Data for NFT collection
When building a collection of NFTs, you have the ability to incorporate distinct custom data into each of them using the following approach. In this method, each object key corresponds to the specific NFT number to which you are attaching the data.
When adding different custom data for each of your NFT collection it is required that the number of keys matches the number of NFTs in the collection.
Mint a Token.
POST
https://api.relysia.com/v1/issue
Mint a token with given specifications (can be both token or NFT). More on docs.relysia.com.
Headers
protocol
string
walletID
string
Request Body
name
string
protocolId
string
symbol
string
description
string
image
string
tokenSupply
number
decimals
number
satsPerToken
number
properties
object
splitable
boolean
Last updated