Issuing TRC-20 tokens tutorial (2024)

Address: TronLink

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.

Issuing TRC-20 tokens tutorial (1)

3. Prepare the TRC20 contract code

Trc20 contract template: code

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

Issuing TRC-20 tokens tutorial (2)

Deploy with tronscan: deployment tool

  • Link wallet

Issuing TRC-20 tokens tutorial (3)

  • Upload contract code

Issuing TRC-20 tokens tutorial (4)Issuing TRC-20 tokens tutorial (5)

  • Compile the contract
    Please select 0.5.10 version compiler

Issuing TRC-20 tokens tutorial (6)Issuing TRC-20 tokens tutorial (7)

The following prompt appears, indicating successful compilation

Issuing TRC-20 tokens tutorial (8)

  • Deployment contract

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

Issuing TRC-20 tokens tutorial (9)

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.

Issuing TRC-20 tokens tutorial (10)Issuing TRC-20 tokens tutorial (11)

5. Record TRC20 Token

Record with Tronscan: Record tool

  • Select token type

Issuing TRC-20 tokens tutorial (12)

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.

Issuing TRC-20 tokens tutorial (13)

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

Issuing TRC-20 tokens tutorial (14)

  • Confirm token information

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).

Issuing TRC-20 tokens tutorial (15)

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.

Issuing TRC-20 tokens tutorial (16)

  • Token successfully recorded

Issuing TRC-20 tokens tutorial (17)

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.

Issuing TRC-20 tokens tutorial (18)

You can also search the contract homepage on tronscan

Issuing TRC-20 tokens tutorial (19)

Note:
Tronlink plug-in currently supports the mainnet and Nile testnet to add tokens. At the same time, the token must be successfully recored in Tronscan and requires 2 hours of data synchronization.

7.Verify TRC20 contracts

Verify with Tronacan: Validation tool

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

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.

Issuing TRC-20 tokens tutorial (20)

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).

Issuing TRC-20 tokens tutorial (21)

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.

Issuing TRC-20 tokens tutorial (22)

Updated about 2 years ago

Issuing TRC-20 tokens tutorial (2024)
Top Articles
Latest Posts
Article information

Author: Zonia Mosciski DO

Last Updated:

Views: 6428

Rating: 4 / 5 (71 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Zonia Mosciski DO

Birthday: 1996-05-16

Address: Suite 228 919 Deana Ford, Lake Meridithberg, NE 60017-4257

Phone: +2613987384138

Job: Chief Retail Officer

Hobby: Tai chi, Dowsing, Poi, Letterboxing, Watching movies, Video gaming, Singing

Introduction: My name is Zonia Mosciski DO, I am a enchanting, joyous, lovely, successful, hilarious, tender, outstanding person who loves writing and wants to share my knowledge and understanding with you.