Quickstart
# Required system dependencies
$ node -v # Required: v16.0.0 or higher
$ npm -v # Required: v8.0.0 or higher
$ solana --version # Required: v1.14.0 or higher
$ anchor --version # Required: v0.26.0 or higher
# Set up Solana development environment if needed
$ sh -c "$(curl -sSfL https://release.solana.com/v1.14.2/install)"
$ solana-keygen new # Generate a new keypair if you don't have one# Clone and initialize the core protocol repository
$ git clone https://github.com/PromptHubLabs/prompthub-protocol.git
$ cd prompthub-protocol
$ npm install
# Configure your development environment
$ cp .env.example .env
$ nano .env # Edit with your Solana keypair path and RPC provider
# Build Solana smart contracts
$ anchor build
$ anchor keys sync # Sync program IDs with declaration file
# Start local validator (optional for testnet)
$ solana-test-validator
# Deploy contracts to localnet/devnet
$ anchor deploy --provider.cluster devnet # For devnet deployment
# OR
$ anchor deploy # For local development (default)
# Verify deployment
$ solana program show --output json <PROGRAM_ID>Last updated