Show HN: StarkZap – Gasless Bitcoin Payments SDK for TypeScript (github.com)

6 points by starkience ↗ HN
StarkZap is an open-source TypeScript SDK for adding Bitcoin-backed asset transfers, balances, lending & borrowing and staking to web, mobile, or server apps. The goal is to let developers integrate programmable Bitcoin assets without requiring users to install wallets, manage seed phrases, or hold gas tokens. Under the hood it runs on Starknet and supports WBTC, tBTC, LBTC, SolvBTC, and other Bitcoin-backed ERC20 tokens.

```import { StarkZap, StarkSigner, Amount, fromAddress, getPresets } from "starkzap";

const sdk = new StarkZap({ network: "sepolia" }); const wallet = await sdk.connectWallet({ account: { signer: new StarkSigner("0xYOUR_PRIVATE_KEY") } });

await wallet.ensureReady({ deploy: "if_needed" });

const { STRK } = getPresets(wallet.getChainId()); const balance = await wallet.balanceOf(STRK);

if (balance.gte(Amount.parse("10", STRK))) { const tx = await wallet.transfer(STRK, [ { to: fromAddress("0xRECIPIENT"), amount: Amount.parse("10", STRK) } ]); await tx.wait(); console.log(tx.explorerUrl); } ```

Key properties: - Gas sponsorship via paymaster (users don’t need gas tokens) - Multiple auth strategies (email/social via Privy, passkeys via Cartridge) - Batch transfers and contract calls in a single atomic transaction - Works in Node, browser, and React Native

The SDK abstracts account management, fee handling, and wallet popups. This won’t make sense for every app (e.g., if you only need fiat checkout). It’s for existing apps that want programmable onchain assets without the wallet UX.

Would appreciate feedback on the API design and whether this abstraction makes sense.

15 comments

[ 3.0 ms ] story [ 26.6 ms ] thread
We wrote a deeper technical breakdown of the architecture here: https://dev.to/akashneelesh/bring-bitcoin-to-your-app-now-in...

High-level architecture: Accounts are smart contract wallets on Starknet Fees are covered via a paymaster contract It's meant for any builder, you don't have to be a blockchain expert to build with it. Transactions are batched and submitted atomically, so you keep the UX of your existing app.

Happy to answer questions about the trust model, custody assumptions, gas economics, or why Starknet vs other Ethereum layer-2s approaches :)
So this is basically an SDK to remove blockchain complexity and add new revenue streams to an app.

Interesting.

(comment deleted)
i have never worked on blockchain, can i still be able to use this easily ?
Wow, it looks very interesting, you are saying that now web2 apps can have crypto functionalities in minutes?
Excited to see this. Is this just for Bitcoin-related assets, or does it also help with e.g. stablecoins?
Noice! Bitcoin on any app thanks to this SDK!
That’s awesome!and how long does it take to go from npm install to first working transaction roughly?