Back to all articles

Our Solana Smart Contract Architecture

20 min readJanuary 12, 2026By Spawned Team

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

  1. Launchpad Program: Handles token creation and bonding curve
  2. Fee Manager: Collects and distributes trading fees
  3. 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 metadata
  • buy: Purchase tokens from curve
  • sell: Sell tokens back to curve
  • claim_rewards: Withdraw accumulated holder rewards
  • graduate: 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

Ready to try it?

Build your first app in a few minutes.

Start Building