System Architecture

Below is a high-level diagram of Purse’s modular structure, emphasizing the Solana stack:

 ┌─────────────────────────────────────────┐
 │                Purse AI              │
 │            (Core Orchestration)      │
 └─────────────────────────────────────────┘
           │                │
           ▼                ▼
 ┌─────────────────┐  ┌──────────────────┐
 │  Discovery &   │  │  Eligibility &
Data Gathering│  │  Task Planning │
 └─────────────────┘  └──────────────────┘
           │                │
           ▼                ▼
 ┌─────────────────────────────────────────┐
 │        Transaction Execution         │
 │    (Solana SDK, Scheduling, Logging) │
 └─────────────────────────────────────────┘


 ┌─────────────────────────────────────────┐
 │           Security & Key Mgmt        │
 │ (Vault, HSM, Anti-Sybil Mechanisms)  │
 └─────────────────────────────────────────┘


         Solana Network
      (Programs, Protocols, DEXs)
  1. Discovery & Data Gathering

    • Scrapes and parses announcements from Solana-focused media and aggregator sites.

    • Stores potential airdrop info in a local or cloud database.

  2. Eligibility & Task Planning

    • Maps out each protocol’s interaction requirements for qualification.

    • Evaluates cost-benefit for each protocol to prioritize where to spend user resources (in SOL or tokens).

  3. Transaction Execution

    • Builds and signs Solana transactions using libraries such as @solana/web3.js or solana-py.

    • Broadcasts them to the Solana blockchain, tracking confirmations and success/failure logs.

  4. Security & Key Management

    • Safeguards private keys via hardware wallets or vault services.

    • Minimizes interaction with unverified Solana programs and fosters best practices to reduce the risk of scams.

Last updated