Minting your first Enjin Token

Now that you already have your token template and set valid metadata to it, it's time for you to mint your asset to your wallet.
The request for minting Fungible Tokens (FTs) vs Non-Fungible Tokens (NFTs) varies slightly. You can mint batches of any token type to multiple addresses or mint them to a single address.
The supply of Fungible Tokens is essentially represented by a quantity field within the token data, as opposed to Non-Fungible Tokens whose supply is represented by the quantity of separate token identities.
If you need to mint multiple NFTs in a single transaction, you will need to specify the receiving Ethereum address for each individual item.
It's important to keep in mind that although there's no limit on the number of mint objects you can send through the mutation, there's a limit on the number of mint events that can be added into a single transaction. In this case, if you specify to try and mint more than 150 assets from one request, it will be split into multiple transactions in the wallet to sign.
FTs do not have the same restriction, you can mint unlimited Fungible Tokens to an Ethereum Address. However, it is advisable not to mint any amount of Fungible Tokens into over 100 different Ethereum Addresses in one transaction.

Minting via Platform

You can also mint via the Enjin Platform on Mainnet or on JumpNet. Minting via the Enjin Platform is simple.
  1. 1.
    First, locate the asset you want to mint, and click the Mint button on the far-right.
  2. 2.
    Select the quantity to mint.
  3. 3.
    Input an address that you'd like the asset(s) minted to.
Minting via the Enjin Platform does have some limitations, such as you can only mint to 1 single address, rather than minting to multiple unique addresses.

Minting using GraphiQL mutation

The following mutation allows you to mint assets over to a wallet address -
mutation {
MintAsset(
assetId: "70800000000029b7"
mints: { to: "0xCc5e715008aceD612C00c0a4066AB7Da287cF0bB", value: 1 }
wallet: "0xCc5e715008aceD612C00c0a4066AB7Da287cF0bB"
send: true
) {
asset {
name
id
}
transactionId
id
value
wallet {
ethAddress
}
}
}
If all the parameters of the request are correct, this is the response that you should get from the platform -
{
"data": {
"MintAsset": {
"asset": {
"name": "NFT Test",
"id": "70800000000029b7"
},
"transactionId": null,
"id": 98423,
"value": "1",
"wallet": {
"ethAddress": "0xCc5e715008aceD612C00c0a4066AB7Da287cF0bB"
}
}
}
}
The request should be approved in your wallet under the requests tab, after that is done, the asset should appear under the assets tab in your Enjin Wallet in a few minutes. You can also check https://goerli.enjinx.io/eth/assets with your Enjin Wallet address to have a look at your asset!