Our Solana Smart Contract Architecture
How the Urge Launchpad program is structured. PDAs, accounts, and how instructions flow through.
Overview
Spawned's token infrastructure runs on Solana through custom programs (smart contracts) built with the Anchor framework. This provides security, speed, and composability.
Program Structure
Main Components
- Launchpad Program: Handles token creation and bonding curve
- Fee Manager: Collects and distributes trading fees
- Graduation Handler: Manages transition to Raydium
Token Creation Flow
User Request ā Validate Parameters ā Create Token-2022 Mint
ā Initialize Bonding Curve ā Configure Fee Extensions ā Return Mint Address
Key Instructions
create_token: Initialize new token with metadatabuy: Purchase tokens from curvesell: Sell tokens back to curveclaim_rewards: Withdraw accumulated holder rewardsgraduate: Trigger Raydium migration
Account Structure
Token Account
- Mint authority (program PDA)
- Supply tracking
- Metadata (name, symbol, image)
- Fee configuration
Bonding Curve Account
- Current price
- Total supply sold
- SOL reserves
- Creator address
Holder Rewards Account
- Accumulated fees
- Claim tracking per holder
Security Model
No Admin Keys: Once deployed, programs are immutable. No one can change rules or steal funds.
PDA Ownership: All accounts owned by program-derived addresses, not wallets.
Audit Status: Programs audited by [auditor name]. Reports available in our docs.
Token-2022 Extensions Used
- Transfer Fee: Automatic 1.25% on every transfer
- Metadata Pointer: On-chain token metadata
- Permanent Delegate: For fee collection
Composability
Spawned tokens are standard SPL Token-2022 tokens. They work with:
- Any Solana wallet
- DEX aggregators (after graduation)
- NFT platforms for token-gating
- Other DeFi protocols
Gas Costs
Typical transaction costs:
- Create token: ~0.01 SOL
- Buy/sell: ~0.00025 SOL
- Claim rewards: ~0.00015 SOL
- Graduate: ~0.02 SOL (larger account creation)
Related Articles
Getting Started with Solana Wallets
How to set up Phantom, Solflare, or another Solana wallet. Basics of keeping your tokens safe.
Why Solana Fees Are So Cheap
Transactions cost fractions of a penny on Solana. How that works and what you will actually pay.
Token-2022 on Solana
Solana has a newer token standard with extra features like transfer fees. Here is what it does.
Ready to try it?
Build your first app in a few minutes.
Start Building