Token Issuance
Create a STAS token
Last updated
Create a STAS token
Last updated
Creating a token requires you to first create a 'default' wallet to issue it to the wallet. If you didnt create one, you can jump back to the wallet section.
The token issuance endpoint takes care of all the rest (including paying the mining fee to mint the token). All you need is to add the parameters to specify the type of STAS token you want.
Parameter | Description | Property |
---|---|---|
Above stated are the main inputs for each STAS token, the extended schema can be found in below code example. There is only one STAS format but various settings that make it behave according to its purpose and use case.
To issue a STAS token, create a variable with all parameters, and trigger relysia.issue()
.
Incorporating personalized data into your Tokens 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.
POST
https://api.relysia.com/v1/issue
Mint a token with given specifications (can be both token or NFT). More on docs.relysia.com.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
protocol
string
walletID
string
name
string
protocolId
string
symbol
string
description
string
image
string
tokenSupply
number
decimals
number
satsPerToken
number
properties
object
splitable
boolean
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