Think in Coin | DEV Docs
  • Develop Documents
  • Networks
    • Fantom Network
      • quick-start
        • Short Guide
      • technology
        • Lachesis aBFT
        • Overview
        • Proof of Stake
        • Transaction Fees
        • FAQ
      • staking
        • Quick start
        • Overview
        • Stake on Fantom
        • Run a Validator Node
        • Run a Read-only node
        • Run a Testnet Validator
        • Troubleshooting
      • api
        • Public API endpoints
        • Getting Started
        • Installation
        • GraphQL Schema Basics
        • Schema Structure
        • Implementation Details and Notes
        • Covalent indexing and querying API
      • tutorials
        • Set up Metamask
        • Set up Metamask (testnet)
        • Deploy a Smart Contract
        • Create a Fixed-cap Asset
    • xDAI Chain
      • Welcome to xDai
      • untitled
        • About xdai
          • Projects & DApps
          • Features
          • Use Cases
          • News & Information
          • Roadmaps
          • FAQs
        • For users
          • xDai Token
          • Getting Started with xDai
          • Bridges
          • Wallets
          • Applications
          • Block Explorers
          • Governance
        • For stakers
          • STAKE Token
          • Staking on xDai
          • EasyStaking on Ethereum
          • POSDAO Staking Roadmap
        • For developers
          • Developer Resources & Tools
          • On-Chain Random Numbers
          • Install xDai Client - Run a Non-Validator Node
          • Stable Chain Network Deployment
          • Grants for building on xDai
          • Immunefi Bug Bounty
        • For validators
    • Polygon Network
      • About - Polygon
      • Technology
    • Huobi HECO Chain
      • Huobi Open Platform
    • Binance Chain
      • Create Address
      • Fees
      • Governance
      • Threshold Signature Scheme
      • Atomic Swap
      • WalletConnect
      • Wallets Support
        • WalletConnect Support
        • Trust Wallet User Guide
        • Ledger Wallet Guide
        • Trezor Wallet Guide
        • How to manage BEP8 token with Web Wallet
      • BEP8 Token Protocol
      • Binance DEX Trading
      • Binance Chain Testnet
      • Exchange Integration
      • List Instructions
    • Binance Smart Chain
      • Concepts
        • Consensus
        • Comparison
        • Genesis File
        • BC > BSC Cross-Chain
          • Mechanism
          • Cross-Chain Transfer
          • BSC Relayer
          • Oracle Module
          • Oracle Relayer
          • Relayer incentives
        • Build-in System Contract
        • Governance
      • Ecosystem
      • Gnosis
      • Binance Bridge
        • Release
        • Roadmap
        • User Guides
        • Developer
          • Widget
          • Swagger API reference
        • Partnership
        • Support
          • Customer Support
        • guides
          • Binance Bridge v2
          • Binance Bridge v1
          • Supported Assets
          • Buy BNB as Gas
    • Ethereum (ERC)
      • Ether - Introduction
        • The Ethereum Foundation
        • Community
        • History of Ethereum
        • The Homestead Release
        • What is Ethereum?
        • A platform for decentralized apps
      • The Ethereum network
        • Connecting to the Network
        • Test Networks
      • Mining
      • Contracts and Transactions
        • Account Types, Gas, and Transactions
        • Contracts
        • Accessing Contracts and Transactions
        • Dapps
        • Mix
          • Project Editor
          • Scenarios Editor
          • State Viewer
          • Transaction Explorer
          • JavaScript console
          • Transaction debugger
          • Dapps deployment
          • Code Editor
        • Ethereum Tests
          • Blockchain Tests
          • State Tests
        • Web3 Base Layer Services
    • Harmony ONE
      • developers
        • Getting Started
        • Network & Faucets
        • Deploying on Harmony
        • SDK
        • API
        • Wallets
        • Tools
        • Showcases
        • Hackathon & Bounties
        • Learn
      • network
        • Governance
        • Holders
        • Validators
        • Delegators
      • general
        • Grants
        • Introduction
          • What is Harmony?‌
          • Roadmap
          • Strategy & Architecture
          • Study Materials
          • FAQ
        • Technology
        • Horizon Bridge
        • DApps
        • Ecosystem
        • Community
    • TRON Network (TRC)
      • Introduction
      • Tron Protocol
        • Account
        • Resource Model
        • Super Representatives
          • Mechanism
          • Step to become a Candidate
          • Committee and Proposal
        • Transaction
        • Multi-Signature
          • Example Process Flow
        • Concensus
        • untitled
          • Build transaction locally
      • TRX AND TRC TOKEN
        • TRX
          • TRX Transfer
          • Query TRX balance
        • TRC-10
          • Issue TRC-10 token
          • Participate TRC-10
          • TRC-10 Transfer
          • Query TRC-10 balance
          • TRC-10 Transfer in Smart Contracts
          • Other TRC-10 Interfaces
        • TRC-20
          • Protocol Interface
          • Issuing TRC-20 tokens tutorial
          • TRC-20 Contract Interaction
        • TRC-721
  • Community
    • Github
    • Telegram DEVs
Powered by GitBook
On this page
  • 2. Prepare an account for issue token
  • 3. Prepare the TRC20 contract code
  • 4. Deploy TRC20 contract
  • 5. Add tokens to Tronlink
  • 6.Verify TRC20 contracts
  • 7. Record TRC20 Token

Was this helpful?

  1. Networks
  2. TRON Network (TRC)
  3. TRX AND TRC TOKEN
  4. TRC-20

Issuing TRC-20 tokens tutorial

PreviousProtocol InterfaceNextTRC-20 Contract Interaction

Last updated 2 years ago

Was this helpful?

Address: ​

2. Prepare an account for issue token

There are three ways to create an account, import an account, and link a hardware wallet. You need to ensure that there are more than 1000 TRX in the account.​​

3. Prepare the TRC20 contract code

Trc20 contract template: ​

Modify the Token.sol file to define the token name, token symbol, precision, and totalsupply​​

4. Deploy TRC20 contract

Deploy with tronscan: ​

  • Link wallet

​​​

  • Upload contract code

​​​​​

  • Compile the contract Please select 0.5.10 version compiler

​​​​​

  • Deployment contract

5. Add tokens to Tronlink

6.Verify TRC20 contracts

  • Enter contract information including contract address,contract name, compiler version, License, optimization history and Runs.

Click Upload contract file(s) for validation.

  • Upload contract code Check I am not a robot (Note: Google authentication is required for this step. Users in Mainland China may have to use VPN).

Click Verify and publish, you will be directed to the contract information page once validated successfully.

  • Contract successfully validated Contract information page will show successful validation.

7. Record TRC20 Token

  • Select token type

Select the TRC20 token and click Yes.

  • Enter TRC20 token information Enter the basic information, contract information and social media information of the token. Fields with "*" are required information. The information you entered must match that of the TRC20 contract. Please note that record must be logged in with the deployer address.

  • Confirm token information

  • Token successfully recorded

The following prompt appears, indicating successful compilation​​

Please note that you must choose the Token contract, because Token is the main contract​​

Click Confirm to deploy, the tronlink signature dialog box will pop up, click to accept to sign,when successful deployment, please get the contract address, and record the contract address.​​​​

On the asset management page, fill in the contract address obtained after successful deployment in the add token input box, the contract just deployed will pop up, click the switch button, and add the token to tronlink. After the addition is successful, the transfer can be carried out.​​

You can also search the contract homepage on tronscan​​

Verify with Tronacan: ​

Contract address is the address recorded while deploying the contract. Contract name refers to the name of the main contract deployed. In the example above, the name is "Token". Compiler version is 0.5.10 You may select None for License Optimization history is Yes and Runs is 0 by default.​​

​​​

​​​

Record with Tronscan: ​

​​​

​​​

Enter all information required for the TRC20 token, click Next.​​

Check if token information is right. Click I’m not a robot, and then click Submit (Note: Google authentication is required for this step. Users in Mainland China may have to use VPN).​​

You will see a popup dialog to confirm token issuance. Click Confirm and you will see another popup from Tronlink asking for your signature. Click Accept to sign the message.​​

Validation tool
Record tool
TronLink
code
deployment tool