Documentation
Comprehensive guides and references to help you create and manage tokens with TokenFactory.
Getting Started
Learn the basics of TokenFactory and how to create your first token.
API Reference
Detailed documentation of the TokenFactory API for developers.
Network Guides
Specific guides for each supported blockchain network.
Contents
Getting Started
TokenFactory is a platform that allows you to create and deploy ERC20 tokens on multiple blockchain networks with just a few clicks. This guide will help you get started with the platform.
Prerequisites
- A Web3 wallet (like MetaMask) installed in your browser
- Some native currency (ETH, BERA, etc.) for gas fees
- Basic understanding of blockchain and tokens
Quick Start
- Connect your wallet
Click the "Connect Wallet" button in the top right corner of the page and select your wallet provider.
- Select a network
Choose the blockchain network where you want to deploy your token from the network selector.
- Fill in token details
Enter your token name, symbol, and total supply in the token creation form.
- Create your token
Click the "Create Token" button and confirm the transaction in your wallet.
Note
Token creation requires a small amount of the network's native currency to pay for gas fees. Make sure you have enough funds in your wallet.
// Example of creating a token using the TokenFactory API
import { ethers } from "ethers";
import { tokenFactoryABI } from "./abis/token-factory-abi";
async function createToken() {
// Connect to the provider
const provider = new ethers.providers.Web3Provider(window.ethereum);
const signer = provider.getSigner();
// Contract address for the selected network
const factoryAddress = "0xdaAe77edcB0D2802Df1326d5eC5b2778A32a9f4E";
// Create contract instance
const factory = new ethers.Contract(factoryAddress, tokenFactoryABI, signer);
// Token parameters
const name = "My Token";
const symbol = "MTK";
const totalSupply = ethers.utils.parseUnits("1000000", 0); // No decimals
// Create the token
const tx = await factory.createToken(name, symbol, totalSupply, await signer.getAddress());
// Wait for the transaction to be mined
const receipt = await tx.wait();
console.log("Token created:", receipt);
}
Token Creation
Creating a token with TokenFactory is a straightforward process. This section covers the details of token creation, including parameters, customization options, and best practices.
Token Parameters
Parameter | Description | Example |
---|---|---|
Name | The full name of your token | "My Awesome Token" |
Symbol | A short identifier for your token (usually 3-5 characters) | "MAT" |
Total Supply | The total number of tokens to create | "1000000" |
Owner | The wallet address that will own the tokens (defaults to your connected wallet) | "0x..." |
Important
Token symbols must be uppercase letters and numbers only. The total supply is the exact number of tokens that will be created, with no decimal places.
Token Standards
All tokens created with TokenFactory follow the ERC20 standard, which is the most widely used token standard on Ethereum and compatible blockchains. This ensures compatibility with wallets, exchanges, and other DeFi applications.
Token Features
- Basic ERC20 functionality (transfer, approve, allowance)
- Ability to burn tokens (reduce supply)
- Owner controls (for future upgrades or additional features)
- Viewable on block explorers (Etherscan, Berascan, etc.)
- Compatible with all ERC20-supporting wallets and exchanges
Managing Tokens
After creating your token, you can manage it through the TokenFactory interface or directly through blockchain interactions. This section covers the various management operations you can perform.
Viewing Your Tokens
You can view all tokens you've created by navigating to the "My Tokens" page. This page displays information about each token, including:
- Token name and symbol
- Total supply
- Contract address
- Network information
Token Operations
From the "My Tokens" page, you can perform several operations on your tokens:
Burn Tokens
Reduce the total supply by burning tokens from your wallet.
- Click the "Burn" button for the token
- Enter the amount to burn
- Confirm the transaction in your wallet
Send Tokens
Transfer tokens to another wallet address.
- Click the "Send" button for the token
- Enter the recipient address and amount
- Confirm the transaction in your wallet
Tracking Tokens
You can track your tokens on blockchain explorers by clicking the "View on Explorer" button for each token. This will take you to the token's page on the appropriate blockchain explorer, where you can see:
- Transaction history
- Token holders
- Contract details
- Token transfers
Tip
You can add your token to MetaMask or other wallets by using the "Copy" button to copy the token address, then using the "Import Token" feature in your wallet.