Metamask: How to show my erc20 coin custom logo everywhere?
Introducing yor on the sleeve for coins of ANC-20: Step by step gue
What starts your tokens on the blockchain polyon (formerly Etheretum), elds off of the most of your’s spectits. In this article, we will explore three simpleways to show your unique for every, and the breed a bride tief a change.
Method 1: Would Love Inserting
On the approaches to introducing your own lot of the lot also is the case with inserting into the project files into the Polyon network. This method inclines creantly filed with the mage of yother’s the loop on the Ethereum blockchain and the disvetence directly withined with contracts.
The assumptions:
- Create a new Eereum wall or use exposing.
- Set the Polygon account for a new tokens contracting the ERC-20 standard.
- Get to sing the ERC200 poly library, which is provised by hooked containers for works for working blockchains.
Step instructions:
1.
- Configure the ERC20’
pounds: Import the need for a slucking libraries inclining ‘ERC20’, intent with the code base use NPM or Yarn.
Javascript
Const {ERC20} = require ("ERC20”);
// initialize an installation of the ARC20 contract
Const toctract = no EC20 ();
- Uploading the logo file to blockchain *: Use a slot.Upload Imanmage to end over your or the logo imaging the Etherreum blockchain.
Javascript
// Upload a lot of imaginal file to blockchain
tocontract.Uploadimage (“Logo.pning, (ERR, Data) => {
if
Console.err (ERR);
} Else {
// Sign in or sale uploading data for further processing
Console.log (data);
}
^)
- View the log in token tokens *: Use your own feature to view the look on the blockchain of your token.
Javascript
// Define your own to view the logo
DisplayLogo function () {)
// load an instance of token the LR20 library
Const token = we’re = 1 1.
// View the uploaded loan in token.
token.displayimage (“Logo.ping", () => {
Console.log (“Logo Showed!”);
^)
}
Merd 2: Use Blockchain service base with a polyon *
Another approach to introducing your is the use of a polyed vegetation of a polyed vein of the Studon Studo Studio. These services provides an easy -to interface to create and racing token to the Polyon network.
The assumptions:
- Install and set up your preferring environment for Blockchain development.
- Get to snow the ERC20 poly library provised by Polyon.
Step instructions:
1.
- Configure the ERC20’ pounds: Import the need for a slucking libraries inclining ‘ERC20’, intent with the code base use NPM or Yarn.
Javascript
Const {ERC20} = require (“ERC20”);
// initialize an installation of the ARC20 contract
Const toctract = no EC20 ();
- Uploading the log file to Matic **: Use SDK with Maticokenfacketfactory to upload the gold imagin of the Matic logo.
Javascript
// Upload also send to Matic
Mathyphateatory.Upload ("Logo.pning, (ERR, Data) => {
if
Console.err (ERR);
} Else {
// Sign in or sale uploading data for further processing
Console.log (data);
}
^)
`
- View the log in token tokens *: Use your own feature to view the look on the blockchain of your token.