Rayls Docs

Minting tokens within a Privacy Ledger

Overview

Minting tokens within the Rayls Privacy Ledger involves using the specialized Rayls ERC handlers for different token standards (ERC-20, ERC-721, and ERC-1155). This guide outlines the steps to mint tokens, referencing the appropriate handler documentation for detailed instructions.

Pre-requisites

  • Deployed Token Contract: Ensure your token contract is deployed on the Rayls Privacy Ledger.
  • Rayls ERC Handler: Familiarize yourself with the Rayls ERC handler corresponding to your token type.

Step-by-step

Minting Tokens

  1. Access the Appropriate Handler: Utilize the Rayls ERC handler specific to your token type (ERC-20, ERC-721, or ERC-1155).
  2. Execute the Minting Function: Use the handler’s mint function to create new tokens, specifying the recipient and the amount.
  3. Verify Minting: After minting, check the recipient’s balance to ensure the tokens have been successfully created and allocated.

For further details on minting tokens using the Rayls ERC handlers, refer to the specific documentation:


After Minting Tokens

Once you mint a token on your Rayls Privacy Ledger, there are several actions you can take depending on the use case, in any case the fundamental premise is to enable transferring this token:

Intra Privacy Ledger: You can transfer the token within the your Privacy Ledger, allowing for private and secure transactions between different addresses in your Privacy Ledger without revealing sensitive information to external parties​​.

Across a Private Subnet: Using the Rayls ecosystem, you can move tokens across different Privacy Ledgers within a Private Subnet by utilizing the Rayls cross-chain messaging protocol. This allows for cross-chain interoperability between participants of a private subnet, while maintaining privacy and compliance​​. After registering your minted token in the private subnet (for more details see registering a token documentation) you should be ready to start teleporting.

Read more about Sending a Teleport here.