In ERC20, what are differences between name and symbol?

I want to know the difference name and symbol.
The code is here

    /**
     * @dev Constructor function
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
    }

Thank you,

1 Like

Hi Shinasaku,

ERC20 tokens have an optional name and symbol.
e.g. Name: “My Token”, Symbol: “TKN”

See the ERC20 definitions:
https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#name
https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#symbol

Etherscan displays ERC20 tokens as “Name (Symbol)”
https://etherscan.io/tokens

Hi @Shinsaku,

I wanted to check that the above reply answered your question.
If it did, can you please mark it as the solution :pray:
Otherwise, please add follow up questions.

Hi @abcoathup
Thank you for the response!

1 Like

Hi @Shinsaku,

Ask all the questions that you need.

Questions and answers help build the community knowledge base for the benefit of the entire community.