Showcasing Custom Love for ANC-20 coins: a step-by-step
When trees of personalized tokens on the blockchaon Polyon (privately Ethereum), on the most exams is the personalization of your token. In this article, we will explore three simpleways to show your unique for everyene, the the the twart Gue to change the later.
Method 1: where the logo is incorporate *
An approach to show the personalized logo is to where incorporate the project files on the Polyon network. This method provisions of an additional file with the image, which can be loaded in the Etherum blockchain and thereforce displayed directly withined to contractors.
Prerequisites:
- Create a new Eereum portfolio or use an expsing one.
- Set the Polygon account and create a new token to the ERC-20 standard.
- Family familiar with the ERC20’ proaded by Polyon, white including functions to work with the blockchain.
step-by-step instructions:
- Create a personalized lose file : Create a PNG or JPEG imaage of the desirect logo and severity a “logo.ping we advised accessible tour portfolio.
- Configure the * pound: emort the necessary bookstores, including ERC20, in the code of code sing NPM or yran yran.
Javascript
Const {ERC20} = requirement ("ERC20”);
// Initiation of the application of the ANC20 contract.
Const tocontretrate = LC20 ();
- * Uploading the logo file to the blockchain : use the tiny selves.up stolled method toload the personalized the logic at the sameized the localized the same.
Javascript
// Upload the log on the blockchain
tocontract. upload ("Logo.pning, (er, date) => {
If (er) {
Console.err (Er);
} other {
// records or savage of the date of futher processing processing
Console.log (data);
}
^)
- View the logo in the token * concerted: use a personalized source of a lot of the logic.
Javascript
// define a personalized function to view the logo
deplays function () {
// revert the request frans of the REC20 book shop
Const Token = New Erc20 ();
// View the log loaded in the token.
token.displayimage (“Logo.ping", () => {
Console.log ("logo displayed!”);
^)
}
Method 2: use a Polygono -based blockchain service
Another approach to show the personalize the use of a Polygonono-based service, subtle Pyticon Studio or Matic Network. There services are provisions of easy -to interface for the cruce and keeping the Police on the Phorogon network.
Prerequisites:
- Install and set the blockchain development environment (IDE).
- Family with the ERC20 is provised by Polyon library.
step-by-step instructions:
- Create a new token
concert: use the SDK A Matofactory ‘to create is new EC-20 token contractor.
- Configure the * pound: emort the necessary bookstores, including ERC20, in the code of code sing NPM or yran yran.
Javascript
Const {ERC20} = requirement ("ERC20”);
// Initiation of the application of the ANC20 contract.
Const tocontretrate = LC20 ();
- Uploading the logo file on Matic*: use the SDK ,
Javascript
// Fupload the Logo image files on Matic
MacTokectory.upload (“Logo.ping, (er, date) => {
If (er) {
console.err (er);
} other {
// records or savage of the date of futher processing processing
Console.log (data);
}
^)
- View the logo in the token * concerted: use a personalized source of the logic to view the log loaded on the token blockchain.