Solang
Solang: Solidity for Solana
Last updated
Solang: Solidity for Solana
Last updated
Follow these steps to set up your development environment for Solang:
Check Your Prerequisites Ensure you have and installed on your system. Windows users should also have the set up.
Solana Tool Suite Installation Install the Solana Tool Suite, including the (CLI) and the latest Solang version.
Anchor Framework Installation Install the , a powerful tool for building Solana programs. Starting from version 0.28, you can use Solang directly with Anchor.
Solang Extension for VSCode If you're a Visual Studio Code (VSCode) user, it's recommended to install the to assist with syntax highlighting. Remember to disable any active Solidity extensions to ensure that the Solang extension works correctly.
Guide for building from source:
Solang is only compatible with Ubuntu 22. If you encounter the following error, follow the solution provided below:
Error:
Solution:
Follow these steps to create your own token using Solang:
Open the file in Visual Studio Code (VSCode).
Switch Solana Network
Choose the Solana network of your choice (localnet, devnet, testnet, or mainnet):
Create a New Wallet
Airdrop Tokens
Note: The private key is stored locally in the key pair. To view it, navigate to the folder and show hidden files. Access the .config
folder in the Find Solana directory and locate the id.json
file containing the private key.
Configure the Anchor.toml file
After cloning the repository, modify the configuration in the Anchor.toml
file.
Build and Deploy the Anchor
Customize Token Information
Open the token.ts file in VSCode.
Modify the token's name, symbol, and URI to suit your needs.
Run the Typescript File
Before running the Token.ts
file, execute these three commands:
Now, run the Typescript file Token.ts
using:
The purpose of this command is to execute the Typescript code in the token.ts
file using the ts-node runtime. This is especially useful during development when you want to quickly run and test Typescript code without manually compiling it to JavaScript beforehand.
Representing
Team Members
Aditya Joshi (Blockchain Developer) (Team Lead) (aditya@coindelta.io)
Yash Kothari (Blockchain Developer) (yash.kothar@coidelta.io)
Tizil Soni (Blockchain Developer) (tizil@coindelta.io)
Saurav Singh (Back-end Developer) (saurav@coindelta.io)
Clone the Repository
The team below is representing Coindelta, a blockchain based company based in the United States. Coindelta is a well reputed company having a core team of blockchain developers. Link to the website of the company. ()