solana-network

Switch Solana network context between devnet, testnet, localnet, and mainnet-beta.

4|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/widnyana/eyay-toolkits --skill solana-network
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solana-network
Source: https://github.com/widnyana/eyay-toolkits/tree/main/plugins/solana-onchain/skills/solana-network
Command: npx skills add https://github.com/widnyana/eyay-toolkits --skill solana-network

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents users from querying or transacting on the wrong Solana cluster by making network selection explicit and offering guarded mainnet switching.

Core Features & Use Cases

  • Show the active network and options: Displays the current Solana network (defaulting to devnet) and lists available clusters for clarity.
  • Switch between devnet, testnet, and localnet: Updates the active network by setting the SOLANA_NETWORK environment variable to match the user’s intent.
  • Guarded mainnet-beta switching: Refuses mainnet-beta changes unless SOLANA_ACCEPT_RISK is explicitly set to true, and reminds users to verify addresses, start small, and simulate transactions.
  • Use cases: Useful when moving from development to staging, when troubleshooting RPC/account reads against a specific cluster, or when preparing a production interaction with deliberate risk confirmation.

Quick Start

Ask the AI to switch your Solana RPC context to mainnet-beta by running /solana-network with the argument "mainnet-beta" (and confirm risk first by running /solana-accept-risk if prompted).

Frequently Asked Questions about solana-network

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I switch Solana networks from devnet to mainnet-beta safely?

To switch the Solana network to mainnet-beta safely, you must explicitly set the SOLANA_ACCEPT_RISK environment variable to true. This guarded switching mechanism prevents accidental mainnet transactions by requiring deliberate risk confirmation before applying the network context change.

Why does my Solana network context default to devnet?

Your Solana network context defaults to devnet because the switching logic reads the SOLANA_NETWORK environment variable and falls back to devnet if it is unassigned. This default ensures safe operational readiness by preventing unintended mainnet interactions during development and testing.

Can I use a custom RPC URL for Solana network switching?

Yes, you can use a custom RPC URL for Solana network switching by setting the SOLANA_RPC_URL environment variable. This allows you to route account queries and transaction analysis through a specific cluster endpoint instead of relying on default public infrastructure.

What is the best way to prevent transacting on the wrong Solana cluster?

The best way to prevent transacting on the wrong Solana cluster is to use an explicit network switching mechanism that defaults to devnet and requires SOLANA_ACCEPT_RISK confirmation for mainnet-beta. This makes network selection deliberate and guards against accidental production interactions.

What limitations exist when changing Solana network contexts?

A key limitation when changing Solana network contexts is that mainnet-beta switching is intentionally blocked unless SOLANA_ACCEPT_RISK is explicitly true. Users must also manually verify addresses, start with small transaction sizes, and simulate operations to mitigate irreversible mainnet errors.