Token creators now have the ability to infuse their tokens with ENJ. Additionally, the token creator has the option to either permit anyone to infuse ENJ to an existing token, or to limit this authority solely to the creator of the token.
Preparation Steps
- To begin, connect your wallet to the Enjin Blockchain Console at https://console.enjin.io/#/accounts. You can establish this connection through one of the two following methods:
- Install the Polkadot{.js} extension to your browser and import your wallet using its recovery phrase. For additional information, please refer to the article titled Configuring Polkadot{.js} for use with the Enjin Blockchain Console.
- Utilize the Wallet Connect feature and scan the QR code using the Enjin Wallet mobile app.
- Ensure you switch to the Enjin Matrixchain in the Enjin Blockchain Console by following the steps outlined in the guide: Switching to the Enjin Matrixchain.
Infuse ENJ
There are two primary methods to infuse ENJ tokens via the Enjin Blockchain Console:
Using the MultiToken Pallet
- Hover over the Network tab and select NFTs.
- Here, you will see the collections that exist in the Matrixchain. If you wish to infuse ENJ into tokens that you did not personally create, you can use the search bar on the right-hand side and input the Collection ID of the token.
Alternatively, click on the My Collections tab to view your own collection.
- On the My Collections page, select the collection that contains the token to be infused with ENJ.
- After selecting the collection, locate the token using its Token ID by using the search bar or browse through the tokens per page.
- Select the token you wish to infuse with ENJ.
- Click the Infuse button. The current infusion value will be displayed on this page.
- Enter the amount of ENJ you want to infuse into the token and then click Infuse.
- Approve/sign the transaction using the method you initially used to connect the wallet to the Console. For instance, in this example, the wallet was connected via the Wallet Connect option.
A notification will appear on the upper-right corner of the Enjin Blockchain Console indicating a successful infusion transaction.
- If you wish to infuse ENJ into another token, you would need to return to the first step.
Here's a quick video showing all of the steps for this 1st method. At the end of the video, you will notice the change in the value of infusion from 2.0000 to 3.0000.
Infusion for Developers
For developers and users who want to efficiently infuse ENJ into multiple tokens.
- Hover over the Developer tab and select Extrinsics.
Here is the view of the Extrinsics page.
- On the Extrinsics page, select and input the following:
- (1) submit the following extrinsic (dropdown): multiTokens
- (2) infuse(collectionId, tokenId, amount)
- (3) collectionId: This is the ID of the collection where the token to be infused with ENJ is.
- (4) tokenId: This is the ID of the token to be infused with ENJ.
- (5) amount: Quantity of ENJ to be infused into the token.
⚠️ The amount argument is denoted in u128. This means that the number you specify is divided by 10^18 to determine the actual amount of ENJ to be transferred. In the example above, an amount of 1000000000000000000 will actually send 1 ENJ. Keep this in mind when specifying the amount on the Extrinsics page.
- Click on 'Submit Transaction'.
- Approve/sign the transaction using the method you initially used to connect the wallet to the Console. For instance, in this example, the wallet was connected via the Wallet Connect option.
A notification will appear on the upper-right corner of the Enjin Blockchain Console indicating a successful infusion transaction.
- If you wish to infuse into another token, unlike the first method, you can simply change the input in the 'tokenId' field and submit the transaction.
Here's a quick video showing all of the steps for this 2nd method:
Checking the Infusion Value
Here's how to verify the current infusion value via the Enjin Blockchain Console:
- Hover over the Developer tab and select Chain state.
Here is the view of the Chain state page.
- On the Chain state page, select and input the following:
- (1) selected state query (dropdown): multiTokens
- (2) tokens(u128, u128)
- (3) collectionId: This is the ID of the collection where the token is.
- (4) tokenId: This is the ID of the token.
- (5) blockhash to query at: This can be left blank to query the most recent block created in the network.
- After filling in the fields, simply hit Enter on your keyboard while on either field (3) or (4) to proceed.
- The output will appear at the bottom of the page. Look for the infusion value. In this example, the infusion value is 3,000,000,000,000,000,000.
⚠️ The amount argument is denoted in u128. This means that the number is divided by 10^18 to determine the actual amount of ENJ infused to it. The amount 3,000,000,000,000,000,000 divided by 10^18 is equals to 3 ENJ.
Aside from the value of infused ENJ, you can also see the anyoneCanInfuse argument. This specifies who can infuse ENJ into specified token:- true - anyone who holds the token can infuse ENJ into it
- false - only the creator of the token can infuse ENJ into it
Congratulations! You are now well-equipped with the knowledge needed to infuse your tokens with ENJ using the Enjin Blockchain Console.
As you embark on this exciting journey, don't hesitate to reach out with any questions or concerns. Our support team is ready to assist you. Feel free to send your queries to support@enjin.io. We're here to ensure your experience is as smooth as possible.
Comments
0 comments
Please sign in to leave a comment.