Skip to content

Instantly share code, notes, and snippets.

@nitishxyz
Created March 20, 2026 12:38
Show Gist options
  • Select an option

  • Save nitishxyz/6dcf16dcff3d1c707f7a905041f35d0e to your computer and use it in GitHub Desktop.

Select an option

Save nitishxyz/6dcf16dcff3d1c707f7a905041f35d0e to your computer and use it in GitHub Desktop.
Soljar — Platform Overview

Soljar — Platform Overview

Soljar is a Solana-native business finance platform. Crypto wallets, fiat banking, token swaps, invoicing, and payments — all in one product for freelancers and small businesses.


Authentication & Wallets — Privy

  • Users sign up with email only — no seed phrases, no extensions
  • Privy auto-creates an embedded Solana wallet (real EOA keypair via MPC) for each user
  • Auth via Privy identity tokens (JWTs) on every request
  • Privy user ID = our database user ID (1:1 mapping)

Banking & Fiat Rails — Bridge

Bridge handles all fiat ↔ crypto movement with full KYC compliance.

Deposits (Fiat → Crypto)

  • Bridge creates a real bank account (account number + routing number) per user
  • Incoming deposits auto-convert to USDC (ACH/Wire) or EURC (SEPA) on Solana
  • Funds land directly in the user's embedded wallet
  • Fee: 0.3% on deposits

Withdrawals (Crypto → Fiat)

  • Users link their bank account (US ACH or EUR IBAN)
  • Bridge generates a liquidation address — send USDC/EURC to it and funds auto-convert to fiat
  • USD via ach_same_day, EUR via sepa
  • Fee: 0.6% on withdrawals (~0.5% Bridge + ~0.1% platform)

KYC

  • Required before any banking features
  • Bridge handles the full identity verification (individual or business)

Token Swaps & Market Data — Jupiter

Swaps (Jupiter Ultra API)

  • Supports all routers: Iris (AMM), JupiterZ, DFlow, OKX DEX
  • Privy EOA wallets support all routers including market maker co-signatures
  • Flow: backend builds unsigned tx → client signs with Privy wallet → submit via Jupiter or directly to Solana
  • Referral fee: 1% (100 bps) on swaps involving SOL, USDC, or USDT

Market Data (Jupiter Tokens API)

  • Holdings — all token balances for a wallet
  • Token search — by name, symbol, or address
  • Trending tokens — by interval (5m, 1h, 6h, 24h)
  • Token details — price, FDV, mcap, liquidity, volume, holder count, social links, security audit
  • Shield — token safety warnings (mint authority, freeze authority, suspicious activity, etc.)

Invoicing

Full invoicing engine for freelancers and businesses.

  • Currencies: USDC or EURC
  • Lifecycle: Draft → Sent → Viewed → Paid / Cancelled
  • Line items, tax calculation, configurable payment terms
  • Email delivery with PDF attachment
  • Public payment page — anyone with the link can pay (no account needed)
  • Paymaster-sponsored fees — Soljar pays Solana tx fees so the payer doesn't need SOL
  • Payment validation via HMAC to prevent tampering
  • Can also mark invoices as paid from bank deposits (Bridge integration)
  • Business profiles, client management, invoice duplication

Other Services

Service Provider Purpose
Transactions Helius On-chain tx history with balance change detection
Charts Solana Tracker OHLCV chart data for any token
Send Solana RPC (Helius) Direct wallet-to-wallet SOL/SPL transfers

Revenue Model

Stream Rate How
Fiat deposits 0.3% Bridge virtual account developer fee
Fiat withdrawals 0.6% Bridge liquidation address developer fee
Token swaps 1% Jupiter referral fee on SOL/USDC/USDT pairs
Invoice payments Free Soljar sponsors tx fees (~0.000005 SOL each)

Tech Stack

Layer Tech
Backend Hono
Database Drizzle ORM + PostgreSQL
Deployment SST on AWS
Runtime Bun
Blockchain Solana mainnet
RPC Helius

External Dependencies

Service What it does
Privy Auth + embedded wallets
Bridge KYC, fiat deposits, fiat withdrawals
Jupiter Swaps, token data, holdings, safety
Helius Solana RPC + transaction history
Solana Tracker Chart data
AWS Lambda Invoice PDF generation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment