The fastest, cheapest, most UX-friendly way to build financial apps and launch assets on Bitcoin
MAINNET BETA
Making Bitcoin Money Again

Launch Stablecoins on Bitcoin Instantly

Create a stablecoin on the most neutral and widely adopted network. With Spark, developers and businesses can create, distribute, monetize their own stablecoins in minutes.

Build your
Dream Wallet

Create full-fledged, self-custodial wallets that seamlessly integrate with Bitcoin and Lightning. Enable any users and businesses to experience fast and cheap payments

Manifesto

A vision for scaling Bitcoin without compromise — preserving its foundations while unlocking new possibilities

123456789101112131415161718192021222324252627
282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
import { SparkWallet } from "@buildonspark/spark-sdk";

const { wallet, mnemonic } = await SparkWallet.initialize({
  options: {
    network: "MAINNET",
  },
});
console.log("Wallet mnemonic:", mnemonic);

// Generate a L1 deposit address
const depositAddress = await wallet.getSingleUseDepositAddress();

// Claim L1 deposit
const result = await getLatestDepositTxId(depositAddress);

if (result) {
  console.log("Transaction ID: ", result);
  const tx = await wallet1.claimDeposit(result);
  console.log("Deposit TX: ", tx);
}

// Check Wallet balance
const balance = await wallet.getBalance();

Launch Stablecoins on Bitcoin Instantly

Create a stablecoin on the most neutral and widely adopted network. With Spark, developers and businesses can create, distribute, monetize their own stablecoins in minutes.

Build your
Dream Wallet

Create full-fledged, self-custodial wallets that seamlessly integrate with Bitcoin and Lightning. Enable any users and businesses to experience fast and cheap payments

Manifesto

A vision for scaling Bitcoin without compromise — preserving its foundations while unlocking new possibilities