Create programs on X1
Basic setup for creating programs on X1 with Anchor
Quick installation
curl --proto '=https' --tlsv1.2 -sSfL https://raw.githubusercontent.com/solana-developers/solana-install/main/install.sh | bashInstalled Versions:
Rust: rustc 1.84.1 (e71f9a9a9 2025-01-27)
Solana CLI: solana-cli 2.0.26 (src:3dccb3e7; feat:607245837, client:Agave)
Anchor CLI: anchor-cli 0.30.1
Node.js: v23.7.0
Yarn: 1.22.1Install needed libraries
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install -y pkg-config build-essential libudev-dev libssl-dev npmsudo npm install -g yarnInstall the Solana CLI(Linux)
Create keypair
Install rust and cargo
Install anchor
Create and deploy a program with Anchor
Initialise a new project
Display Anchor.toml
Change provider to X1 Testnet RPC
Set to X1 testnet
Fund wallet
Build project
Deploy program
Confirm test transaction
Modify program
If error
Tutorial
Last updated

