### Agave Install - Init Subcommand Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/implemented-proposals/installer.md Initializes a new Solana installation using the agave-install tool. ```APIDOC ## agave-install init ### Description Initializes a new installation. ### Usage ```text agave-install init [OPTIONS] ``` ### Flags - `-h`, `--help` : Prints help information ### Options - `-d`, `--data_dir ` : Directory to store install data [default: .../Library/Application Support/solana] - `-u`, `--url ` : JSON RPC URL for the solana cluster [default: http://api.devnet.solana.com] - `-p`, `--pubkey ` : Public key of the update manifest [default: 9XX329sPuskWhH4DQh6k16c87dHKhXLBZTL3Gxmve8Gp] ``` -------------------------------- ### Initialize Network Genesis Ledger Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/clusters/benchmark.md Initialize the network with a genesis ledger by running the setup script. This is a prerequisite for starting any nodes in the testnet. ```bash ./multinode-demo/setup.sh ``` -------------------------------- ### Install Solana CLI on Windows using Install Tool Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/install.md Download the Solana installer executable for Windows. Ensure you run the Command Prompt as an Administrator. ```bash cmd /c "curl https://release.jito.wtf/LATEST_AGAVE_RELEASE_VERSION/agave-install-init-x86_64-pc-windows-msvc.exe --output C:\agave-install-tmp\agave-install-init.exe --create-dirs" ``` -------------------------------- ### Start PostgreSQL Server Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/validator/geyser.md Starts the PostgreSQL 14 service using systemctl. Ensure PostgreSQL is installed and configured before running this command. ```bash sudo systemctl start postgresql@14-main ``` -------------------------------- ### Build and Run Installer from Source Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/implemented-proposals/installer.md If a pre-built binary is unavailable for your platform, you can build the installer from source using Cargo. ```bash $ git clone https://github.com/jito-foundation/jito-solana.git $ cd jito-solana/install $ cargo run -- --help ``` -------------------------------- ### Example Publish Command Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/operations/guides/validator-info.md An example of how to publish validator information, including the validator name, website, and icon URL. ```bash solana validator-info publish "Elvis Validator" -w "https://elvis-validates.com" -i "https://elvis-validates.com/my-icon.png" ``` -------------------------------- ### Example Agave Validator Configuration for Testnet Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/clusters/available.md Provides a comprehensive command-line example for starting an agave validator on the Testnet cluster. This includes identity, vote account, known RPCs, ledger configuration, and entrypoints specific to Testnet. ```bash $ agave-validator \ --identity validator-keypair.json \ --vote-account vote-account-keypair.json \ --known-validator 5D1fNXzvv5NjV1ysLjirC4WY92RNsVH18vjmcszZd8on \ --known-validator dDzy5SR3AXdYWVqbDEkVFdvSPCtS9ihF5kJkHCtXoFs \ --known-validator Ft5fbkqNa76vnsjYNwjDZUXoTWpP7VYm3mtsaQckQADN \ --known-validator eoKpUABi59aT4rR9HGS3LcMecfut9x7zJyodWWP43YQ \ --known-validator 9QxCLckBiJc783jnMvXZubK4wH86Eqqvashtrwvcsgkv \ --only-known-rpc \ --ledger ledger \ --rpc-port 8899 \ --dynamic-port-range 8000-8020 \ --entrypoint entrypoint.testnet.solana.com:8001 \ --entrypoint entrypoint2.testnet.solana.com:8001 \ --entrypoint entrypoint3.testnet.solana.com:8001 \ --expected-genesis-hash 4uhcVJyU9pJkvQyS88uRDiswHXSCkY3zQawwpjk2NsNY \ --wal-recovery-mode skip_any_corrupted_record \ --limit-ledger-size ``` -------------------------------- ### Agave Install - Info Subcommand Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/implemented-proposals/installer.md Displays information about the current Solana installation. ```APIDOC ## agave-install info ### Description Displays information about the current installation. ### Usage ```text agave-install info [FLAGS] ``` ### Flags - `-h`, `--help` : Prints help information - `-l`, `--local` : only display local information, don't check the cluster for new updates ``` -------------------------------- ### Start Test Network Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/clusters/testnet.md Starts the test network by uploading, building, and deploying current sources to all nodes. This process typically takes 5-10 minutes. ```bash ./net.sh start ``` -------------------------------- ### Example Agave Validator Configuration for Devnet Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/clusters/available.md Provides a comprehensive command-line example for starting an agave validator on the Devnet cluster. This includes identity, vote account, known RPCs, ledger configuration, and entrypoints specific to Devnet. ```bash $ agave-validator \ --identity validator-keypair.json \ --vote-account vote-account-keypair.json \ --known-validator dv1ZAGvdsz5hHLwWXsVnM94hWf1pjbKVau1QVkaMJ92 \ --known-validator dv2eQHeP4RFrJZ6UeiZWoc3XTtmtZCUKxxCApCDcRNV \ --known-validator dv4ACNkpYPcE3aKmYDqZm9G5EB3J4MRoeE7WNDRBVJB \ --known-validator dv3qDFk1DTF36Z62bNvrCXe9sKATA6xvVy6A798xxAS \ --only-known-rpc \ --ledger ledger \ --rpc-port 8899 \ --dynamic-port-range 8000-8020 \ --entrypoint entrypoint.devnet.solana.com:8001 \ --entrypoint entrypoint2.devnet.solana.com:8001 \ --entrypoint entrypoint3.devnet.solana.com:8001 \ --entrypoint entrypoint4.devnet.solana.com:8001 \ --entrypoint entrypoint5.devnet.solana.com:8001 \ --expected-genesis-hash EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG \ --wal-recovery-mode skip_any_corrupted_record \ --limit-ledger-size ``` -------------------------------- ### Install Solana Cluster Software with Bootstrap Script and Arguments Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/implemented-proposals/installer.md Use this method when additional arguments need to be passed to the installer. Arguments are specified after the '-s -' flag. ```bash $ init_args=.... # arguments for `agave-install-init ...` $ curl -sSf https://raw.githubusercontent.com/jito-foundation/jito-solana/v1.0.0/install/agave-install-init.sh | sh -s - ${init_args} ``` -------------------------------- ### Create Accounts for Durable Nonce Example Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/examples/durable-nonce.md Generates keypairs for Alice, Alice's nonce account, and Bob, setting up the necessary accounts for a durable nonce transaction example. ```bash solana-keygen new -o alice.json solana-keygen new -o nonce.json solana-keygen new -o bob.json ``` -------------------------------- ### Start Test Network with Metrics Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/clusters/testnet.md Deploy and start the test network processes on all nodes, including running `bench-tps` on the client node. Ensure `RUST_LOG` is set to 'info' or higher for metrics to be logged. ```bash RUST_LOG=info ./net.sh start ``` -------------------------------- ### Start Faucet Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/clusters/benchmark.md Start the faucet service, which provides test tokens to clients for use in test transactions. This is necessary for validators and clients to function. ```bash ./multinode-demo/faucet.sh ``` -------------------------------- ### Execute Solana Installer on Windows Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/install.md Run the downloaded Solana installer executable on Windows. Replace LATEST_AGAVE_RELEASE_VERSION with the desired release tag. ```bash C:\agave-install-tmp\agave-install-init.exe LATEST_AGAVE_RELEASE_VERSION ``` -------------------------------- ### Install Solana Binaries on Windows Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/install.md Manually install Solana binaries on Windows by extracting the downloaded archive and updating the PATH environment variable in the Command Prompt. ```bash cd solana-release/ set PATH=%cd%/bin;%PATH% ``` -------------------------------- ### Instantiate TransactionBatchProcessor and Execute Transactions Source: https://github.com/jito-foundation/jito-solana/blob/master/svm/doc/spec.md Example of creating a TransactionBatchProcessor and calling load_and_execute_sanitized_transactions. Requires setup of slot, epoch, program_cache, SysvarCache, and builtin program IDs. ```rust let mut processor = TransactionBatchProcessor::new( slot, epoch, program_cache.clone(), sysvar_cache.clone(), builtin_program_ids.clone(), ); let _ = processor .load_and_execute_sanitized_transactions( &mut callbacks, &sanitized_txs, &mut check_results, environment, config, ) .await; ``` -------------------------------- ### Install Solana Cluster Software with Bootstrap Script Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/implemented-proposals/installer.md The simplest method for supported platforms. This script fetches the latest tagged release and runs the installer. ```bash $ curl -sSf https://raw.githubusercontent.com/jito-foundation/jito-solana/v1.0.0/install/agave-install-init.sh | sh ``` -------------------------------- ### PostgreSQL Plugin Configuration Example Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/validator/geyser.md An example configuration file for a Solana Geyser PostgreSQL plugin. It specifies the library path, database connection details, threading, batch size, and account selection. ```json { "libpath": "/solana/target/release/libsolana_geyser_plugin_postgres.so", "host": "postgres-server", "user": "solana", "port": 5433, "threads": 20, "batch_size": 20, "panic_on_db_errors": true, "accounts_selector" : { "accounts" : ["*"] } } ``` -------------------------------- ### Install Dependencies with npm Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/README.md Use this command to install all necessary project dependencies for the Docusaurus site. Ensure you have Node.js and npm installed. ```bash npm install ``` -------------------------------- ### Example Query Command Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/operations/guides/validator-info.md Use this command to retrieve the currently published validator information from the chain. ```bash solana validator-info get ``` -------------------------------- ### Install Solana Binaries on Linux Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/install.md Manually install Solana binaries on Linux by downloading, extracting, and adding the bin directory to your PATH. ```bash tar jxf solana-release-x86_64-unknown-linux-gnu.tar.bz2 cd solana-release/ export PATH=$PWD/bin:$PATH ``` -------------------------------- ### Check Solana CLI Installation Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/wallets/paper.md Verify that the solana-keygen tool is installed correctly by checking its version. ```bash solana-keygen --version ``` -------------------------------- ### View Stake Account Details (Example Output) Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/examples/delegate-stake.md Example output format for `solana stake-account`. Shows total stake, delegated amounts, and associated addresses. ```text Total Stake: 5000 SOL Credits Observed: 147462 Delegated Stake: 4999.99771712 SOL Delegated Vote Account Address: CcaHc2L43ZWjwCHART3oZoJvHLAe9hzT2DJNUpBzoTN1 Stake activates starting from epoch: 42 Stake Authority: EXU95vqs93yPeCeAU7mPPu6HbRUmTFPEiGug9oCdvQ5F Withdraw Authority: EXU95vqs93yPeCeAU7mPPu6HbRUmTFPEiGug9oCdvQ5F ``` -------------------------------- ### Start BigTable Emulator Source: https://github.com/jito-foundation/jito-solana/blob/master/storage-bigtable/README.md Run this command in the background to start the Cloud BigTable emulator for local development. ```bash gcloud beta emulators bigtable start ``` -------------------------------- ### Start Test Network with Bench-TPS Workload Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/clusters/testnet.md Starts the test network with a specified number of clients running the bench-tps workload, sending a defined number of transactions per batch. Additional arguments for bench-tps can be passed. ```bash ./net.sh start bench-tps=2="--tx_count 2500" ``` -------------------------------- ### Query Output Example Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/operations/guides/validator-info.md This is an example of the output format when querying validator info. It includes the validator's public key and serialized info, which may contain iconUrl or keybaseUsername. ```text Validator info from 8WdJvDz6obhADdxpGCiJKZsDYwTLNEDFizayqziDc9ah Validator pubkey: 6dMH3u76qZ7XG4bVboVRnBHR2FfrxEqTTTyj4xmyDMWo Info: {"iconUrl":"elvis","name":"Elvis Validator","website":"https://elvis-validates.com"} ``` -------------------------------- ### Install Nightly Rust for Benchmarking Source: https://github.com/jito-foundation/jito-solana/blob/master/README.md Installs the nightly build of Rust, which is required for running benchmarks that utilize unstable features. ```bash $ rustup install nightly ``` -------------------------------- ### Agave Install Tool - Main Usage Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/implemented-proposals/installer.md Provides an overview of the agave-install tool's main commands and options. ```APIDOC ## agave-install ### Description The `agave-install` tool is used by the user to install and update their cluster software. :::info As of v3.0 `agave-install` does not install the `agave-validator` binary, which is required to run a validator node. Validator operators are required to [build from source](../cli/install.md#build-from-source). ::: It manages the following files and directories in the user's home directory: - `~/.config/solana/install/config.yml` - user configuration and information about the currently installed software version - `~/.local/share/solana/install/bin` - a symlink to the current release. eg, `~/.local/share/solana-update/-/bin` - `~/.local/share/solana/install/releases//` - contents of a release ### Command-line Interface ```text agave-install 0.16.0 The solana cluster software installer USAGE: agave-install [OPTIONS] FLAGS: -h, --help Prints help information -V, --version Prints version information OPTIONS: -c, --config Configuration file to use [default: .../Library/Preferences/solana/install.yml] SUBCOMMANDS: deploy deploys a new update help Prints this message or the help of the given subcommand(s) info displays information about the current installation init initializes a new installation run Runs a program while periodically checking and applying software updates update checks for an update, and if available downloads and applies it ``` ``` -------------------------------- ### Start solana-test-validator Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/examples/test-validator.md Launches a local Solana test validator with default settings. Leave this running in a separate terminal. ```bash solana-test-validator ``` -------------------------------- ### Start Validator Downloading Snapshot Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/operations/guides/restart-cluster.md Arguments for starting a validator that needs to download a snapshot because its local ledger is not up-to-date or has been deleted. It still includes parameters for waiting for supermajority and expected bank hash. ```bash agave-validator --wait-for-supermajority SLOT_X # <-- NEW! IMPORTANT! REMOVE AFTER THIS RESTART --expected-bank-hash NEW_BANK_HASH # <-- NEW! IMPORTANT! REMOVE AFTER THIS RESTART --entrypoint entrypoint.testnet.solana.com:8001 --known-validator 5D1fNXzvv5NjV1ysLjirC4WY92RNsVH18vjmcszZd8on --expected-genesis-hash 4uhcVJyU9pJkvQyS88uRDiswHXSCkY3zQawwpjk2NsNY --only-known-rpc --limit-ledger-size ... # <-- your other --identity/--vote-account/etc arguments ``` -------------------------------- ### Enable and Start Validator System Service Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/operations/setup-a-validator.md Configure and start the Solana validator as a system service using systemd. This ensures the validator runs automatically on boot. ```bash sudo systemctl enable --now sol ``` -------------------------------- ### Start Bootstrap Validator Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/clusters/benchmark.md Start the bootstrap validator for the testnet. Ensure UDP ports 8000-10000 are open on all machines. The validator will indicate readiness with 'leader ready...'. ```bash ./multinode-demo/bootstrap-validator.sh ``` -------------------------------- ### Get Help for Publish Command Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/operations/guides/validator-info.md Run this command to view detailed information about the optional fields for VALIDATOR_INFO_ARGS. ```bash solana validator-info publish --help ``` -------------------------------- ### Agave Install - Deploy Subcommand Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/implemented-proposals/installer.md Deploys a new update to the Solana cluster. ```APIDOC ## agave-install deploy ### Description Deploys a new update. ### Usage ```text agave-install deploy ``` ### Flags - `-h`, `--help` : Prints help information ### Arguments - `` : URL to the solana release archive - `` : Keypair file for the update manifest (/path/to/keypair.json) ``` -------------------------------- ### Download and Run Pre-built Installer from GitHub Release Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/implemented-proposals/installer.md Obtain a pre-built binary directly from a GitHub release URL. Ensure the downloaded file is executable. ```bash $ curl -o agave-install-init https://github.com/jito-foundation/jito-solana/releases/download/v1.0.0/agave-install-init-x86_64-apple-darwin $ chmod +x ./agave-install-init $ ./agave-install-init --help ``` -------------------------------- ### Get Current Solana CLI Configuration Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/examples/choose-a-cluster.md Check which cluster the Solana CLI is currently configured to target. No setup is required. ```bash solana config get ``` -------------------------------- ### Get Local Solana CLI Version Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/examples/choose-a-cluster.md Retrieve the version of the Solana command-line tool installed on your local machine. This is useful for ensuring compatibility with cluster versions. ```bash solana --version ``` -------------------------------- ### Get Slot Entries Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/validator/blockstore.md Fetches contiguous entries for a specified slot starting from a given shred index. Note that the entry index to shred index mapping is not one-to-one. ```rust fn get_slot_entries(slot: Slot, shred_start_index: u64) -> Result> ``` -------------------------------- ### Install macOS Build Dependencies Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/install.md Installs required build tools on macOS using Homebrew. Make sure Homebrew is installed and configured. ```bash brew install pkg-config libudev protobuf llvm coreutils ``` -------------------------------- ### Start Additional Validator Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/clusters/benchmark.md Start additional validators in separate shells to form a multinode testnet. This command is run after the bootstrap validator has been started. ```bash ./multinode-demo/validator-x.sh ``` -------------------------------- ### Build Jito Solana from Source Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/install.md Builds Jito Solana binaries after installing prerequisites. This script compiles the source code and adds the bin directory to your PATH. ```bash ./scripts/cargo-install-all.sh . export PATH=$PWD/bin:$PATH ``` -------------------------------- ### Verify Agave Validator Installation Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/operations/setup-a-validator.md Run this command to confirm the agave-validator binary is installed and view its version. ```bash agave-validator --version ``` -------------------------------- ### Install Solana CLI on MacOS/Linux using Install Tool Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/install.md Use this command to install the Agave release of the Solana CLI on MacOS and Linux. Replace LATEST_AGAVE_RELEASE_VERSION with a specific release tag or channel name like 'stable', 'beta', or 'edge'. ```bash sh -c "$(curl -sSfL https://release.jito.wtf/LATEST_AGAVE_RELEASE_VERSION/install)" ``` -------------------------------- ### Build Solana with Release Profile Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/clusters/benchmark.md Build the Solana project using the release profile for optimal performance. This command should be run before starting any nodes. ```bash cargo build --release ``` -------------------------------- ### Install Debian Build Dependencies Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/install.md Installs essential build tools and libraries for Debian-based Linux distributions. Ensure you have apt-get available. ```bash apt-get install \ build-essential \ pkg-config \ libudev-dev llvm libclang-dev \ protobuf-compiler ``` -------------------------------- ### Install Solana Binaries on MacOS Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/install.md Manually install Solana binaries on MacOS by downloading, extracting, and adding the bin directory to your PATH. ```bash tar jxf solana-release-x86_64-apple-darwin.tar.bz2 cd solana-release/ export PATH=$PWD/bin:$PATH ``` -------------------------------- ### Create Nonce Account with Solana CLI Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/examples/durable-nonce.md Generates a new keypair and creates a durable nonce account on the Solana chain. Ensure the account has the minimum balance for rent exemption. ```bash solana-keygen new -o nonce-keypair.json solana create-nonce-account nonce-keypair.json 1 ``` -------------------------------- ### Solana CLI Configuration Output Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/operations/guides/validator-start.md Example output showing the current Solana CLI configuration, including RPC URL, WebSocket URL, keypair path, and commitment level. ```text Config File: /home/solana/.config/solana/cli/config.yml RPC URL: http://api.devnet.solana.com WebSocket URL: ws://api.devnet.solana.com/ (computed) Keypair Path: /home/solana/validator-keypair.json Commitment: confirmed ``` -------------------------------- ### Start Local Metric Services Source: https://github.com/jito-foundation/jito-solana/blob/master/metrics/scripts/README.md Execute this script to start the local InfluxDB and Grafana services. Ensure this is run before enabling metrics for applications. ```bash $ ./start.sh ``` -------------------------------- ### Build Static Docs Locally Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/README.md This script generates static documentation files into the 'build' directory. It requires Docker and will fetch the solanalabs/rust image to compile the Solana CLI from source. This process also generates the 'cli/usage.md' document and converts ASCII art files to SVGs. ```bash ./build.sh ``` -------------------------------- ### Automated Testnet Creation and Startup Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/clusters/testnet.md A script to create a testnet with specific node sizes, patch metrics configuration, and start the network with a defined workload. This helps prevent errors during the initialization process. ```bash # Create the testnet with reasonable node sizes for a small test # This particular one will have 7 nodes: 1 bootstrap validator, 4 regular validators, and 2 clients ./gce.sh create -n4 -c2 --custom-machine-type "--machine-type n1-standard-16" --client-machine-type "--machine-type n1-standard-4" # Patch metrics config from env into config file ./init-metrics.sh -e # Enable metrics and start the network (this will also build software) RUST_LOG=info ./net.sh start -c bench-tps=2="--tx_count 25000" ``` -------------------------------- ### Create PostgreSQL Database Instance Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/validator/geyser.md Creates a new PostgreSQL database named 'solana' using the 'createdb' command. Assumes the 'postgres' user has the necessary privileges and the server is running on the default port or specified port. ```bash sudo -u postgres createdb solana -p 5433 ``` -------------------------------- ### List All Solana CLI Commands Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/cli/intro.md Run this command to view all available Solana CLI commands and their general usage. ```bash solana --help ``` -------------------------------- ### Get Epoch Information Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/operations/guides/validator-monitor.md Query the `getEpochInfo` JSON-RPC method to get details about the current epoch. Monitor `slotIndex` to ensure it progresses, indicating the cluster is active. ```json {"jsonrpc":"2.0","id":1, "method":"getEpochInfo"} ``` -------------------------------- ### Start Test Network Without Rebuilding Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/clusters/testnet.md Skips the source compilation step during network startup. Useful when only configuration files are changed or for re-running the last test. ```bash ./net.sh start --nobuild ``` -------------------------------- ### Configure Agave Validator for Mainnet Beta Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/clusters/available.md Example command to launch an `agave-validator` instance connected to Mainnet Beta. Ensure you have the correct identity and vote account keypairs, and adjust known validators and entrypoints as needed. ```bash $ agave-validator \ --identity ~/validator-keypair.json \ --vote-account ~/vote-account-keypair.json \ --known-validator 7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2 \ --known-validator GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ \ --known-validator DE1bawNcRJB9rVm3buyMVfr8mBEoyyu73NBovf2oXJsJ \ --known-validator CakcnaRDHka2gXyfbEd2d3xsvkJkqsLw2akB3zsN1D2S \ --only-known-rpc \ --ledger ledger \ --rpc-port 8899 \ --private-rpc \ --dynamic-port-range 8000-8020 \ --entrypoint entrypoint.mainnet-beta.solana.com:8001 \ --entrypoint entrypoint2.mainnet-beta.solana.com:8001 \ --entrypoint entrypoint3.mainnet-beta.solana.com:8001 \ --entrypoint entrypoint4.mainnet-beta.solana.com:8001 \ --entrypoint entrypoint5.mainnet-beta.solana.com:8001 \ --expected-genesis-hash 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d \ --wal-recovery-mode skip_any_corrupted_record \ --limit-ledger-size ``` -------------------------------- ### Install PostgreSQL Server (Ubuntu) Source: https://github.com/jito-foundation/jito-solana/blob/master/docs/src/validator/geyser.md Installs PostgreSQL version 14 on Ubuntu systems using the official PostgreSQL APT repository. Ensure your system's codename is compatible with the repository. ```bash sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt-get update sudo apt-get -y install postgresql-14 ```