Create programs on X1
Basic setup for creating programs on X1 with Anchor
Basic setup for creating programs on X1 with Anchor
This step-by-step is for terminal. You can also use playground.
The following output indicates a successful update:
Depending on your system, the end of the installer messaging may prompt you to
If you get the above message, copy and paste the recommended command below it to update PATH
You can do this by adding the following line to your $HOME/.profile or /etc/profile (for a system-wide installation):
Confirm you have the desired version of solana
installed by running:
After a successful install, solana-install update
may be used to easily update the Solana software to a newer version at any time.
Using command solana-keygen to generate a new wallet. It will generate a 12-word seed (aka. mnemonic, or recovery) phrase. Save it safe.
Use the latest stable rust version:
Check version:
On Linux systems you may need to install libssl-dev, pkg-config, zlib1g-dev, protobuf etc.
Rust installation link for reference:
Install avm using Cargo. Note this will replace your anchor binary if you had one installed:
Install the latest version of the CLI using avm, and then set it to be the version to use:
Verify installation:
Anchor installation link for reference:
programs: <project name> = "program ID" cluster = localnet wallet = path to wallet scripts: how yarn is used to run a test
Change localnet to: https://xolana.xen.network
To verify set network, use:
Or:
Go back to original <project name> directory, before building and deploying program again.
instruction 0: account data too small for instruction
The byte size is pre-set for initial deployment. You can increase byte size by: