Developer Tools
Everything you need to build, test, and deploy on Suprana
Command Line Tools
suprana
Main CLI tool for interacting with the Suprana blockchain.
# Install (add to PATH)
export PATH="$HOME/suprana/bin:$PATH"
# Configure
suprana config set --url http://localhost:8899
# Check balance
suprana balance
# Transfer SUP
suprana transfer <ADDRESS> 10suprana-keygen
Generate and manage keypairs for Suprana wallets.
# Generate new keypair
suprana-keygen new
# Recover from seed phrase
suprana-keygen recover
# Display public key
suprana-keygen pubkey wallet.jsonsuprana-test-validator
Local validator for testing and development.
# Start test validator
./bin/suprana-test-validator
# With custom configuration
suprana-test-validator --reset --quietToken Tools
spl-token
Create and manage SPL tokens on Suprana.
# Install
cargo install spl-token-cli
# Create token
spl-token create-token
# Create token account
spl-token create-account <TOKEN_MINT>
# Mint tokens
spl-token mint <TOKEN_MINT> 1000
# Transfer tokens
spl-token transfer <TOKEN_MINT> 100 <RECIPIENT>Development Frameworks
Anchor
The most popular framework for Suprana program development.
# Install Anchor
cargo install --git https://github.com/coral-xyz/anchor avm
avm install latest
avm use latest
# Create new project
anchor init my_project
# Build
anchor build
# Test
anchor test
# Deploy
anchor deploy@solana/web3.js
JavaScript/TypeScript SDK for Suprana applications.
# Install
npm install @solana/web3.js
# Usage
import { Connection, PublicKey } from '@solana/web3.js';
const connection = new Connection('http://localhost:8899');
const balance = await connection.getBalance(publicKey);Build Tools
cargo build-bpf
Compile Rust programs to BPF bytecode for Suprana.
cargo build-bpfsolana-test-validator
Local blockchain for testing and development.
Test environmentanchor test
Run automated tests for your programs.
Testing frameworkDocumentation
Comprehensive guides to help you build on Suprana