Usage
Last updated
Last updated
This is a description of the features that the token module offers.
Name | Description |
---|---|
Create tokens. Created tokens are recorded on the network and the transaction record detailing the success/failure of token creation is also generated.
Name | Type | Example |
---|---|---|
Users can mint additional tokens aside from the one initially created. If the “isMintable” value is false, you cannot mint additional tokens.
Burn tokens. If the “isBurnable” value is false, you cannot burn tokens.
Update the URL that points to the token’s meta data.
Transfer tokens to a different wallet.
Name | Type | Example |
---|---|---|
Name | Type | Example |
---|---|---|
Name | Type | Example |
---|---|---|
Name | Type | Example |
---|---|---|
Name | Description |
---|---|
Create tokens.
Mint tokens.
Burn tokens.
Modify the meta data of the token.
Transfer tokens to a different wallet.
Parameters required to call API.
wallet
Object (FirmaWalletService)
You can check how to use your wallet in the "firma-js of the Github repository".
tokenName
String
FIRMA TOKEN
tokenSymbol
String
FIRMA
tokenURI
String
"https://firmachain.org/nft/metadata/bcf5cdajs-ff12...-d2han89nnha1"
totalSupply
Number
10000000
decimal
Number
6
isMintable
Boolean
true
isBurnable
Boolean
true
txMisc
(Not required)
Object (TxMisc)
{fee:200000,gas:86840,memo:"custom message"}
wallet
Object (FirmaWalletService)
You can check how to use your wallet in the "firma-js of the Github repository".
tokenID
String
"ufirma"
amount
Number
10000000
decimal
Number
6
toAddress
String
"firma1nssuz67am2uwc2hjgvphg0fmj3k9l6cx65ux9u"
txMisc
(Not required)
Object (TxMisc)
{fee:200000,gas:87084,memo:"custom message"}
wallet
Object (FirmaWalletService)
You can check how to use your wallet in the "firma-js of the Github repository".
tokenID
String
"ufirma"
amount
Number
10000000
decimal
Number
6
txMisc
(Not required)
Object (TxMisc)
{fee:200000,gas:90787,memo:"custom message"}
wallet
Object (FirmaWalletService)
You can check how to use your wallet in the "firma-js of the Github repository".
tokenID
String
"ufirma"
tokenURI
String
"https://firmachain.org/nft/metadata/bcf5cdajs-ff12...-d2han89nnha1"
txMisc
(Not required)
Object (TxMisc)
{fee:200000,gas:66822,memo:"custom message"}
wallet
Object (FirmaWalletService)
You can check how to use your wallet in the "firma-js of the Github repository".
targetAddress
String
"firma1nssuz67am2uwc2hjgvphg0fmj3k9l6cx65ux9u"
tokenID
String
"ufirma"
amount
Number
10
decimal
Number
6
txMisc
(Not required)
Object (TxMisc)
{fee:200000,gas:68902,memo:"custom message"}
wallet
Unique wallet parameter created from the user’s Mnemonic. This parameter can be called by using the Wallet.fromMnemonic function from the FirmaSDK module.
tokenName
This parameter refers to the buffer data of a file or a text.
tokenID
This is the ID generated at the time of token creation.
tokenSymbol
This is the symbol of the token being created.
tokenURI
This is the URL for the meta data of the token.
totalSupply
This is the total supply of the token being issued.
amount
This refers to the amount of tokens.
decimal
This refers to the decimal points.
isMintable
Users can decide whether to allow additional issuing of tokens at the time of token creation. If this value is false, you will not be able to mint additional tokens.
isBurnable
Users can decide whether to allow burning of tokens at the time of token creation. If this value is false, you will not be able to burn tokens.
toAddress (targetAddress)
For this parameter, please enter your FirmaChain wallet address.
txMisc
(Not required)
This object contains the gas fee that is deducted when a transaction is called upon.
* The default gas fee is set at 0.02fct.