deploy-to-mainnet

Guides Solana projects from devnet testing through mainnet deployment with checklists and verification.

1|Updated May 10, 2026
One-click install
npx skills add https://github.com/goheesheng/base-new --skill deploy-to-mainnet-goheesheng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deploy-to-mainnet
Source: https://github.com/goheesheng/base-new/tree/main/skills/launch/deploy-to-mainnet
Command: npx skills add https://github.com/goheesheng/base-new --skill deploy-to-mainnet-goheesheng

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Moving a Solana project from devnet to mainnet involves security checks, RPC configuration, program upgrade authority decisions, and post-deployment verification that are easy to miss under launch pressure. This Skill walks you through a structured pre-flight checklist and deployment runbook so nothing critical is skipped. ## Core Features & Use Cases - Pre-flight Deployment Checklist: Step-by-step verification of security, infrastructure, program, frontend, and monitoring readiness before going live. - RPC Provider Configuration: Guidance on choosing and configuring production RPC providers like Helius, QuickNode, or Triton with fallback endpoints. - Program Upgrade Management: Instructions for initial deployment, upgrade authority handling (keep, transfer to Squads multisig, or freeze), state migration strategies, and rollback plans. - Use Case: You have an Anchor program tested on devnet and need to ship it. The skill checks for leaked keys, verifies your mainnet RPC endpoint, confirms deployer wallet balance, deploys the program, and verifies it on-chain. ## Quick Start Ask the assistant to help you deploy your Solana project to mainnet and walk through the production readiness checklist.

Frequently Asked Questions about deploy-to-mainnet

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

FAQPage Schema
How do I deploy a Solana program to mainnet?

Build the program with anchor build, configure a production RPC endpoint from a provider like Helius, ensure the deployer wallet has enough SOL for deployment and rent, then run anchor deploy with the mainnet-beta cluster. Verify the deployment afterward with solana program show using the program ID.

What should I check before deploying to Solana mainnet?

Verify no private keys or seed phrases are committed to git, confirm .env is gitignored, test the program on devnet with realistic scenarios, audit dependencies for vulnerabilities, and configure a production RPC endpoint with a fallback. The deployment checklist also covers monitoring, alerting, and rollback planning.

Which RPC provider should I use for Solana mainnet?

Helius is recommended as a primary provider for its RPC, DAS API, and webhook support, with QuickNode or Triton as fallbacks. Never use the public RPC endpoint for deployment, and configure a separate WebSocket endpoint if your app uses subscriptions.

Should I freeze my Solana program upgrade authority?

Keep the upgrade authority for at least the first three months so bugs can be fixed, and use a Squads multisig for programs holding significant value. Freezing is irreversible and prevents any rollback, so only do it after the program is thoroughly tested and audited.

How do I migrate Solana account data after a program upgrade?

Add a version field to your account struct and write a migration instruction that upgrades old accounts, or use realloc to resize accounts with zeroed new bytes. Deploy the new program first, then batch-migrate existing accounts and verify all migrations completed before removing old format support.

Can I roll back a Solana program deployment if something goes wrong?

Yes, if the program is still upgradeable: dump the broken binary with solana program dump, then redeploy the previous version with anchor upgrade. If the program was frozen with a final upgrade authority, rollback is impossible, which is why freezing should be delayed until the program is stable.