Skip to content

stellar/soroban-react-mint-token

Repository files navigation

Soroban React Mint Token

This serves as a basic example of how a token administrator can mint more tokens on Soroban.

You can explore this dapp at https://scaffold-soroban.stellar.org/ by choosing mint-token from the "select demo" dropdown.

Prerequisites

The Mint Token DApp relies on the following dependencies:

Features

The Mint Token DApp offers the following features:

  1. Freighter Wallet Integration: The Mint Token DApp seamlessly integrates with Freighter/Albedo/XBull, allowing users to connect their wallet to access Soroban token balances and utilize their signing capabilities for secure and integrity-checked transactions.

  2. Transaction Construction: Leveraging the Soroban token's contract interface, the DApp constructs transactions that invoke the mint method. This method facilitates the minting of new tokens to an address.

Getting Started

To use the Mint Token DApp, follow these steps:

  1. Install and set up one of the supported wallets.
  1. Clone and navigate into the Mint Token DApp repository by trunning the following:

    git clone https://github.com/stellar/soroban-react-mint-token.git
    cd soroban-react-mint-token
    
  2. Install the dependencies by running the following:

    yarn
    
  3. If you are using the Freighter wallet, ensure that experimental mode is enabled. You can find this setting in Freighter wallet at: Settings(⚙️)>Preferences>ENABLE EXPERIMENTAL MODE.

  1. Enable and add Soroban Tokens in Freighter.

  2. Connect the dapp to Freighter.

  1. Add the public key for the account that will receive the newly minted tokens.

  1. Add the contract ID for the token that you will be minting, and add the quantity of new tokens to mint.


  1. Set the desired transaction fee & memo.

  1. Confirm your transaction parameters, and submit it to the network.


  1. View your transaction's result XDR and optionally start the mint flow over.

Build the Project

yarn && yarn build

Starting a Dev Environment

yarn && yarn start

Contributions

Contributions to the Mint Token DApp are welcome. If you encounter any issues, have suggestions for improvements, or would like to contribute to the codebase, please submit an issue, pull request, or reach out to us on Discord.