Turn Dodo revenue into instant Solana treasury payouts.
AllocRail is the programmable treasury layer after Dodo revenue lands. Dodo handles compliant checkout, subscriptions, credits, refunds, and verified billing events. AllocRail converts those verified revenue events into founder-controlled treasury routes for contractor payouts, tax reserves, founder distributions, and AI-agent budgets, then settles them on Solana with receipt-backed proof.
Dodo revenue comes in.
AllocRail splits it.
Founder approves it.
Solana settles it.
Receipt proves it.
SaaS and AI founders can collect money globally, but post-revenue treasury work is still manual:
- contractor payouts still live in spreadsheets
- tax reserves are tracked outside the billing system
- refunds and disputes create real payout risk
- cross-border wires are slow and expensive
- there is no clean proof chain from customer payment to downstream treasury movement
- AI-agent/tool spend is rarely isolated from founder treasury
This is worse for Indian SaaS founders collecting globally and paying distributed teams across borders.
AllocRail sits after Dodo revenue collection and before treasury settlement.
It:
- creates Dodo checkout sessions with treasury-routing metadata
- verifies signed Dodo webhooks
- enforces idempotency and replay protection
- matches revenue to founder-defined allocation rules
- generates payout intents with approval and hold controls
- executes wallet-signed Solana USDC treasury payouts
- records receipts that link Dodo events to Solana proof
AllocRail uses Dodo in a meaningful way. It does not wrap Dodo checkout with cosmetic stablecoin branding. Dodo is the verified revenue source of truth for:
- one-time payments
- subscriptions
- credit events
- refunds
- disputes
- receipt source linkage
AllocRail’s wedge is not checkout. It is post-revenue treasury routing.
Solana is the payout rail, not decoration.
- fast multi-recipient settlement
- low-cost treasury operations
- programmable payout routing
- wallet-native execution
- explorer-verifiable proof
The result is better than spreadsheets plus bank transfers for this exact workflow.
Dodo checkout
-> verified webhook
-> allocation rule match
-> payout intents
-> founder approval / hold logic
-> wallet-signed Solana USDC settlement
-> audit receipt
/landing page with track-specific positioning/loginfounder auth/dashboardoverview with seeded demo state when no live routing data exists/dashboard/eventsrevenue event inbox/dashboard/payout-intentsgrouped treasury queue/dashboard/receiptsproof history/dashboard/rulesallocation rule management + AI drafting/dashboard/settingsfounder profile, wallet binding, treasury config
- founder identity uses Supabase Auth
- treasury operator wallet is cryptographically bound by signed challenge
- sensitive payout actions require the bound wallet
- refund/dispute flows can quarantine unsettled routes
- receipts bind Dodo event data, allocation logic, and Solana proof into one audit surface
- real checkout session creation
- routing metadata on checkout
- verified webhook ingestion
- idempotency protection
- refund request flow
- dispute/refund-aware payout holds
- subscription lifecycle handling
- credit event handling
- allocation rules in basis points
- payout intent generation
- grouped payout routes by payment
- approve / reject / execute controls
- wallet-signed execution
- treasury refill / FX configuration
- audit receipts
- non-empty seeded demo state for first-run judge sessions
- dashboard stats and route visibility
- receipt history and receipt proof view
- CSV export for revenue events
- AI treasury copilot:
- rule drafting
- queue summary
- budget-risk summary
flowchart LR
A["Customer pays via Dodo"] --> B["Verified Dodo webhook"]
B --> C["AllocRail rule match"]
C --> D["Payout intents"]
D --> E["Founder approval / hold logic"]
E --> F["Bound wallet signs execution"]
F --> G["Solana USDC settlement"]
G --> H["Receipt links Dodo event to Solana proof"]
Colosseum Copilot validation for this project surfaced the crowded cluster as Stablecoin Payment Rails and Infrastructure. Similar entries include projects like Tributary, x402 Agnic Hub, and Pistis Pay.
The important conclusion is:
- generic payment rails are crowded
- generic billing automation is crowded
- “payments” by itself is not a strong differentiator
AllocRail’s strongest wedge is:
Dodo revenue in -> founder-controlled treasury routing -> Solana settlement proof
Completed:
- Milestone 1: API foundation
- Milestone 2: Dodo checkout
- Milestone 3: verified webhook routing
- Milestone 4: founder dashboard
- Milestone 5: Solana devnet USDC settlement
- Milestone 6: approvals and safety guardrails
- Milestone 7: deeper Dodo semantic coverage
- Milestone 8: treasury copilot
- Milestone 9 product work: founder demo flow and branded treasury surfaces
Current build verification:
npm run buildpasses
| Layer | Technology |
|---|---|
| Frontend | Next.js, React, TypeScript |
| Payments | Dodo Payments |
| Storage | Supabase |
| Solana client | @solana/web3.js, @solana/spl-token, wallet-standard |
| Program path | Anchor scaffold for future policy vault |
| AI | OpenAI gpt-4o-mini |
Devnet USDC mint:
4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU
Install:
npm installConfigure env:
cp .env.example .envRequired variables:
NEXT_PUBLIC_SUPABASE_URL
NEXT_PUBLIC_SUPABASE_ANON_KEY
SUPABASE_SERVICE_ROLE_KEY
OPENAI_API_KEY
OPENAI_BASE_URL
Apply Supabase migrations:
supabase/migrations/20260507_allocrail_milestone_6.sql
supabase/migrations/20260508_allocrail_milestone_7_dodo_depth.sql
supabase/migrations/20260508_allocrail_receipt_sources.sql
supabase/migrations/20260508_allocrail_founder_rls.sql
supabase/migrations/20260509_allocrail_wallet_binding_treasury_config.sql
Run:
npm run devOpen:
http://localhost:3000
Phase 7 submission assets live in:
docs/SUBMISSION_COPY.mddocs/HACKATHON_SUBMISSION.htmldocs/PITCH_DECK.mddocs/PITCH_DECK.html
- GitHub: NikhilRaikwar/AllocRail
- Colosseum: AllocRail on Colosseum
- X: @AllocRail
MIT