Deploy on SVM
This is a brief tutorial on how to use SVM on the current Lumio on Solana devnet. For EVM and Move VM, you can refer to the tutorials from the Lumio on Optimism testnet, but be sure to use the correct RPC and faucet RPC endpoints.
Config
Solana CLI required.
Configure RPC URL:
solana config set --url https://svm.devnet.lumio.ioIf you need a new key:
solana-keygen new -o ./keypair.jsonFaucet
Get some SOL:
solana airdrop 1Create Token
# Install
cargo install spl-token-cli
# Create token
spl-token create-tokenAfter you got token address:
Create a program
Be sure CLI is configured and account funded.
Create a new project:
Add deps:
Open Cargo.toml and add the following:
Replace src/lib.rs with the following code:
Build:
Deploy:
Last updated