Skip to content
Back to skills

Solana Network

ASecurity

Display current Solana network and switch between devnet, testnet, localnet, and mainnet-beta. Use this skill when the user runs /solana-network, asks to "switch network", "use mainnet", "connect to devnet", or mentions changing the Solana network they're connected to.

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
devopsbashtesting

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add widnyana/eyay-toolkits --skill solana-network --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Solana Network?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Solana Network
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/widnyana-solana-network/badge)](https://www.skillsdirectory.com/skills/widnyana-solana-network)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: solana-network
description: |
  Display current Solana network and switch between devnet, testnet, localnet, and mainnet-beta.
  Use this skill when the user runs /solana-network, asks to "switch network", "use mainnet",
  "connect to devnet", or mentions changing the Solana network they're connected to.
argument-hint: "[network] (optional: devnet, testnet, localnet, or mainnet-beta)"
allowed-tools: [Bash]
---

Manage the active Solana network. Default is devnet.

Review: $ARGUMENTS

## Instructions

### No arguments — show current network

1. Read `SOLANA_NETWORK` from environment. If unset, assume `devnet`.
2. Display current network and available options:

```
Current network: [network]

Available:
  devnet        - Testing, free SOL via airdrop
  testnet       - Community testnet, real conditions, no risk
  localnet      - Local validator, requires local setup
  mainnet-beta  - Production, real SOL, requires /solana-accept-risk
```

### Switching to devnet / testnet / localnet

1. Set `SOLANA_NETWORK` to the requested value.
2. Confirm the switch with network details.

### Switching to mainnet-beta

1. Check if `SOLANA_ACCEPT_RISK` is set to `true`.
2. If not accepted — refuse the switch and tell the user to run `/solana-accept-risk` first.
3. If accepted — switch and show mainnet safety reminders:
   - Verify addresses 3x before transferring
   - Start with tiny test amounts (0.001 SOL)
   - Simulate all transactions first

### Invalid network name

Show error with valid options: `devnet`, `testnet`, `localnet`, `mainnet-beta`.

### Notes

- Network defaults to devnet on session restart.
- Custom RPC: set `SOLANA_RPC_URL` environment variable.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.