Deployment
Overview
After generating and reviewing your smart contract in SynthFi, you have two main paths for deploying your protocol:
Manual deployment to Solana Devnet using Anchor CLI (recommended for developers)
Launchpad deployment interface (UI-ready, automated deploy coming soon)
This section walks through both.
đź”§ Manual Deployment (Devnet)
For full control and testing, you can deploy the contract locally using the Anchor CLI toolset.
âś… Step 1: Install Dependencies
If you haven’t already, install the Solana and Anchor CLI tools:
bashCopyEditsh -c "$(curl -sSfL https://release.solana.com/stable/install)"
cargo install --git https://github.com/coral-xyz/anchor anchor-cli --locked
âś… Step 2: Set Devnet as Your Network
bashCopyEditsolana config set --url https://api.devnet.solana.com
Ensure your Phantom wallet is also set to Devnet.
âś… Step 3: Use the Generated Contract
From SynthFi, export or copy the generated program code into an Anchor project folder:
bashCopyEditanchor init my-contract
# Replace `lib.rs` and `Cargo.toml` with your SynthFi code
âś… Step 4: Build and Deploy
bashCopyEditanchor build
anchor deploy
After deploying, Anchor will return your unique program ID, e.g.:
yamlCopyEditProgram Id: 6KkM3sG9...xPzM1iZ
This is the on-chain address of your smart contract.
âś… Step 5: Generate the IDL
The IDL (Interface Definition Language) defines how the frontend talks to the contract.
After building, the IDL is generated in:
bashCopyEdittarget/idl/your_contract.json
You’ll reference this in the frontend or Launchpad for contract interaction.
Launchpad Deployment (UI Flow)
SynthFi also includes a Launchpad interface that lets you:
Review the generated contract
Connect your Phantom wallet
Configure deployment metadata
(Soon) Deploy directly to Solana Devnet from the UI
Current Workflow
Click “Send to Launchpad” from SynthFi
You’re redirected to
/launchpad
with the draft loadedConnect Phantom Wallet
Review contract preview
Configure:
Token name / symbol
Decimals / metadata
See contract risk warnings (if any detected)
Click Deploy to Devnet (currently simulated)
⚠️ Deployment Simulation (MVP)
As of now, the Deploy button simulates UX only. Backend infrastructure to safely compile and deploy from the browser is under development.
Post-Deployment Steps
Once deployed, you can:
View the program on Solana Explorer (Devnet)
Copy the program ID into your
.env
file:
envCopyEditNEXT_PUBLIC_PROGRAM_ID=your_program_id_here
Use the DApp UI to interact with your deployed contract
Security Reminder
SynthFi is not a replacement for formal audits. Use Devnet only for prototyping and testing. Never deploy unaudited code to Mainnet.
Coming Soon to Launchpad
🔄 One-click Anchor build + Devnet deploy
🚦 Deployment risk gate (blocks deploy if rug patterns are detected)
đź’ľ Save deployment logs per wallet
đź›° IPFS or GitHub export
Last updated