How to deploy a token in SUI: Complete Guide
deploy a token on the SUI blockchain can be done mainly in two ways: through programming in Move or using a no-code tool such as Smithiis dApp.
In this guide, we will first see how to program and deploy your token in Move step by step; then, you will learn the quickest and easiest way if you want to create it without code sniping.
1. deploy a token in SUI with Move
For developers with some experience, Move is the programming language used by SUI. It allows you to create and control the logic of your smart contract with great flexibility. Below, we review the essential points to create and deploy a token in SUI using Move.
Requirements
- Install the Sui CLI, the command line tool for interacting with the SUI network.
- A Devnet, Testnet or SUI Mainnet environment depending on your objectives.
- Basic knowledge of Move (functions, modules, structures).
- A wallet with sufficient SUI balance to cover publication fees.
Creation of the Move Module for your token
Every token in SUI starts from a Move module. Here is a basic example that defines the structure of your token and a function for its initial mint
// file: MyToken.move
module MyAddress::MyToken {
use std::vector;
use sui::balance;
use sui::coin;
use sui::tx_context;
// token structure
struct Token has drop, store {
name: vector,
symbol: vector,
decimals: u8,
total_supply: u64,
}
// mint function
public fun init_token(
name: vector,
symbol: vector,
decimals: u8,
total_supply: u64,
ctx: &mut tx_context::TxContext
): coin::Coin {
let token_info = Token {
name,
symbol,
decimals,
total_supply
};
coin::mint(token_info, total_supply, ctx)
}
}
This allows you to store your token (with name, symbol, decimals and total_supply) and allows you to mint (mint) the initial supply.
Compile and deploy the package
- Create a project folder containing your file
.move
in a subdirectory such as sources. - Use
sui move build
to compile. Verify that there are no errors. - Deploya the module with
sui move publish --gas-budget <x>
.
Your code will be published on the blockchain, and the package address will be generated. - Invoke the function
init_token
:
sui client call --package <package_addr> --module MyToken --function init_token <...args>
.
This is how you create your Coin with the total_supply defined.
That's it! Upon completion, you will have a functional token on the SUI network, ready for transfers and listing on scanners.
2. deploy a token in SUI without programming with Smithii
If you prefer a faster method without touching code, Smithii offers a dApp that automate the process of creating and deploy a token in SUI. No need to edit files .move
or use the CLI: simply fill in a few fields and you are ready to go.
How Smithii Sui Token Creator works
- Visit Smithii s Sui Token Creatorsmithii
- Connect your SUI wallet to authorize the creation.
- Define name, abbreviation, decimals, total supply, logo, etc.
- Click on "Create Token" and approve the transaction in your wallet.
In a few seconds, you will have your token deployed without having written a single line of Move. This approach is ideal for projects looking for immediacy or creators who have no technical programming knowledge.
Advantages of no-code deployment
- Speed: You can launch a SUI token in 1 minute.
- No code errors: The risk of bugs in Move is reduced to zero.
- Multi-functionality: In addition to tokenization, Smithii allows you to revoke authorities or create liquidity pools without programming, all with one click.
- 24/7 assistance: Smithii 's team offers continuous support.
Conclusion
There are two main ways to deploy a token in SUI: the Move programming approach, which offers flexibility and full control but requires technical expertise, and the no-code deployment of Smithiiwhich is ideal for those looking for quick and uncomplicated results.
Thanks to the possibilities that SUI offers, whether you opt for the traditional route of creating your module .move
or use the Smithii, you can launch your own token and be part of a growing blockchain ecosystem.
Subscribe and receive a free E-Book!
Receive our free e-book with all the tools you need to launch on Cetus
Industrial Engineer. Member of the Smithii's marketing team. Solana trader. Collaborator in the $SHRIMP memecoin launch.