CRYPTOCURRENCY

SPL Access Key Development Anchor/Solana playground: Step by step guide

Are you alling to blame your Solana SPL Access Key? In this article, we will provide with the SPL of the benefits of locking the process the Inchor Solana playground. By the end of this supervisor, you will a Functional SPL token whe 2% of all ooperatives burning and automatic is reached.

Conditions necessary

  • You has a Solana knot set and operating anchor

  • You has installed Solana SDK for Anchor (yu can find [ (

  • You have a basic understanding of Solana Blockchain and token’s concepts

Step 1: Create a new token

Follow the following steps to create a new anchor sign:

  • Run the anchor CLI by starting an “anchoor launch” in your terminal.

  • Select the token in the record -down menu.

  • Choose “Create a new token” and select the SPL token type (based on Solid).

  • Enter the name of the token: Thealtcoin

  • Set the symbol: TALTC

  • Specify the overall supply: 99,99999999.999

Step 2: Configure the features of the SPL sign

Next we have configure the features of the SPL sign:

  • Go to the “Functions” tab.

  • Add this Solid to Toaltcoin.SOL File:

`Solidarity

Pragma solidity ^0.8.0;

import@Solana/SPL-Token/Implp/Spltokenadapter.SOL;

stracted Thealtcoin {

appeal to a public token;

UINT256 public property;

}

Function Burn (address _ccount, Uint256) Internal {

Require (_cacount! =address (0), “Bur: The Account must not be zero”);

Require (mount <= general plysply, "Bur: Indequate funds");

Spltokenadapters Spltokenadapters = Spltokenadapters Solana_adapters;

splokenadapters.burn (_ccount, amauunt);

}

`

  • Change Spltokenadapters to true Solana node adapter (eg Solanaadapters).

  • Save and reset the sign contraact using Sol Build.

Step 3: Set Automatic Burning

Tourn on an automatic burning, we need to your crate a can reached 65% of the supply 65% ​​of.

  • Create a new file caled Thealtcoin.Sol in

  • Add this Solid code:

`Solidarity

Pragma solidity ^0.8.0;

import@Solana/SPL-Token/IMPL/SpTOkerDapter.sol;

stracted Thealtcoin {

appeal to a public token;

UINT256 public property;

}

contract SPL {

Function Burn (address _ccount, Uint256) Internal {

Require (_cacount! =address (0), “Bur: The Account must not be zero”);

Require (mount <= general plysply, "Burn: Indequate Funds");

Spltokenadapters Spltokenadapters = Spltokenadapters Solana_adapters;

Sploekenadapters.burn (_account, suum);

}

Function Autburg () Public { {

Uint256 Newtototalsuply = tolesslyy * 0.65;

Require (Newtotalsuply> 0, Autob: Fail to burn due to insufficient funds);

Totalsuply = Newtototalsuply;

}

}

`

  • Replac Spltokenadapters to true Solana node adapter (eg Solanaadapters).

  • Save and reset the contraction application Sol Build.

Step 4: Install token

To install the satells are you will to the create a new configuration of the file:

  • Run the anchor CLI by starting an “anchoor launch” in your terminal.

  • Select the token in the record -down menu.

  • Selectcoin Access Key Name and the SPL Type.

  • Upload the Solana Node Configuration File (eg Config.json) token the token.

Step 5: Check the token

To check, that your access is successfullly created, you can can anchor CLI:

  • Run anchor CLI by starting an “anchor starting” at your terminal.

2.

ethereum submit faster