A Cryptum API key is the only requirement to create your brand new NFT for Hathor. However, you probably want to add images, titles, symbols, attributes, etc. to your token. This information should be hosted in a service like Pinata or arweave, and not on the token itself.
Creating NFTs Programmatically with Cryptum SDK
Step 1
The first prerequisite you will need is the creation of an account and a Project (API Key) on Cryptum Dashboard.
PS: Our dashboard is almost ready! To generate an API Key, contact hello@blockforce.in
Step 2
With a valid Cryptum API Key, you can then instantiate the SDK as follows:
wallet will receive the newly minted tokens;
name is the token name;
symbol is the token symbol;
amount is the amount to be first minted;
uri is the metadata URI;
mintAuthorityAddress is a wallet address that has the power to mint more NFTs. If it's null then this NFT can no longer be minted;
meltAuthorityAddress is a wallet address that has the power to burn NFTs. If it's null then this NFT can no longer be minted;
The hash is the transaction hash which is also the NFT address.
Mint NFTs
Mint an existing NFTs in Hathor blockchain.
Keep in mind that you need enough HTR tokens to pay for this transaction depending on the minting amount, as already explained above.
Only the minting authority can mint more tokens. It is required to pass the minting authority every time this function is called to keep on minting more tokens.
Only the melt authority can burn more tokens. It is required to pass the melt authority every time this function is called to keep on burning more tokens.