Developer SDK

Veil Financial Core

Add USDC wagering to any app or game. Settlement, custody, compliance, and user onboarding — handled.

Veil Financial Core is our primary developer-facing product. Integrate real-money USDC wagering into your application with a simple API. We handle the financial infrastructure so you can focus on your game.

quickstart.ts
// Install the Veil SDK
npm install @veil/financial-core
// Initialize and create a wager
import { Veil } from '@veil/financial-core'
const veil = new Veil({ apiKey: process.env.VEIL_API_KEY })
// Create a USDC wager between two users
const wager = await veil.wagers.create({
amount: 25.00, // USDC
currency: "USDC",
players: ["user_abc", "user_xyz"],
settlement: "solana",
})
// → Wager created. USDC escrowed. Settlement on resolve.
What You Get

One SDK. Full Financial Stack.

Veil Financial Core abstracts the entire wagering lifecycle. You call our API — we handle settlement, custody, compliance, and payouts.

User Wallets

Managed USDC wallets for every user. Automatic creation, balance management, and transaction routing.

Wager Settlement

Create wagers, escrow funds, resolve outcomes, and settle — all via API. USDC on Solana with sub-second finality.

KYC/AML

Built-in identity verification and AML screening. Configurable compliance policies per jurisdiction.

Custody Options

Managed custody by default. Optional self-custody for users who want to connect their own Solana wallets.

Deposits & Withdrawals

Fiat on-ramps, USDC deposits, and withdrawal processing. We handle the money movement.

Audit & Transparency

Every transaction settles on-chain. Immutable audit trails, real-time reporting, and compliance exports.

Integration Flow

Add Wagering in Minutes

01

Install the SDK

npm install @veil/financial-core. Initialize with your API key. Available for TypeScript, Python, and Rust.

02

Onboard Users

Call veil.users.create() to onboard users. We handle KYC verification, wallet creation, and compliance checks.

03

Create Wagers

Call veil.wagers.create() with an amount, players, and settlement type. Funds are escrowed in USDC automatically.

04

Resolve & Settle

Call veil.wagers.resolve() with the winner. USDC is settled on-chain to the winner's wallet. Audit trail generated.

Architecture

Built in Rust. Settled on Solana.

The backend is a modular Rust service handling settlement, custody, compliance, and monitoring as independent, scalable components.

Settlement Layer

  • 01Native USDC (SPL token) on Solana
  • 02Sub-second transaction finality
  • 03Automatic escrow and release
  • 04Idempotent settlement operations
  • 05Confirmation tracking with retry logic

Security & Compliance

  • 01HSM-backed key management
  • 02Multi-signature authorization
  • 03KYC/AML pipeline with configurable policies
  • 04Encrypted storage and TLS 1.3
  • 05Immutable audit trails on-chain

Start Building

Developer documentation and SDK access are coming soon. Get notified when Veil Financial Core is available.