Issue and manage compliant stablecoins on Spark with Brale.
Brale lets you issue and manage fiat-backed stablecoins on Spark with built‑in compliance and treasury controls. Use Brale to create a token, set rules (freeze, allow/block lists), mint/burn supply, and distribute to Spark wallet addresses via API or dashboard. Designed for regulated issuers and fintechs. See the official docs for details.
USDB is Brale’s flagship stablecoin on Spark, a dollar-pegged token backed 1:1 by U.S. Treasuries that earns 3.5-6% APY paid daily in Bitcoin. Learn more about USDB →
Below is a minimal pattern that mirrors Brale’s Quick Start: create or select a token in the dashboard, use an API key, then mint to a Spark address. Adjust endpoints and fields per your Brale workspace and token configuration.Reference: Quick Start
Copy
Ask AI
// 1) Create/select a token in the Brale dashboard and get an API key// 2) Server-side mint to a Spark addressconst BRALE_API = 'https://api.brale.xyz'; // example base URLconst BRALE_API_KEY = process.env.BRALE_API_KEY!;const TOKEN_ID = process.env.BRALE_TOKEN_ID!; // your Brale-issued token idtype MintRequest = { tokenId: string; amount: string; // integer string amount in smallest units recipientSparkAddress: string; // Spark address (bech32m) to receive tokens};async function mintToSpark(req: MintRequest) { const res = await fetch(`${BRALE_API}/v1/tokens/${req.tokenId}/mint`, { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${BRALE_API_KEY}`, }, body: JSON.stringify({ amount: req.amount, recipient: req.recipientSparkAddress, }), }); if (!res.ok) { const err = await res.text(); throw new Error(`Brale mint failed: ${res.status} ${err}`); } return await res.json();}// Example usageawait mintToSpark({ tokenId: TOKEN_ID, amount: '1000000', // e.g., 1.000000 unit if 6 decimals recipientSparkAddress: 'spark1xxxxx',});