Introducing the Ark Wallet SDK

The Ark Wallet SDK, a TypeScript-powered toolkit for building Bitcoin wallets with both on-chain and off-chain transaction support.

Introducing the Ark Wallet SDK

Introducing the Wallet SDK

We’re excited to announce the release of Ark Wallet SDK, a TypeScript-powered toolkit that simplifies building Bitcoin wallets with seamless support for both on-chain and off-chain transactions.

Why?

The Wallet SDK provides JavaScript developers with a secure and portable solution for implementing Bitcoin functionality. Built on noble cryptography's minimal-dependency approach, our wallet library enables both Bitcoin and Ark transactions in your web applications and mobile wallets—all without the overhead of WebAssembly.

Get Started

Installation

npm install @arklabs/wallet-sdk

Send your (virtual) coins

Here’s how you can restore a wallet from a private key and send Bitcoin off-chain on MutinyNet (a custom Bitcoin testnet):

import { InMemoryKey, Wallet } from '@arklabs/wallet-sdk' 
 
const identity = InMemoryKey.fromHex('your_private_key_hex') 
 
const wallet = new Wallet({  
  identity, 
  network: 'mutinynet', 
  arkServerUrl: 'https://master.mutinynet.arklabs.to ', 
  arkServerPublicKey: 'd45fc69d4ff1f45cbba36ab1037261863c3a49c4910bc183ae975247358920b6' 
}) 
 
// Send Bitcoin to an Ark address 
const txid = await wallet.sendBitcoin({ 
  address: 'tark1qw508d6qejxtdg4y5r3zarvary0c5xw7kxpjzsx',  
  amount: 100000 
}) 
 
console.log('Virtual Transaction ID:', txid)

Use Cases

Mobile Payments

Perfect for React Native developers looking to integrate Bitcoin transactions in their apps. With pure JavaScript implementation and no WebAssembly dependencies, integration is straightforward and efficient.

AI Agent Transactions

Traditional web infrastructure wasn’t designed for AI agents making purchases or booking services. While Bitcoin provides a solution, on-chain transactions can be slow and costly. With Ark Wallet SDK, agents can create virtual channels for instant settlement.

Non-Custodial Merchant Solutions

Enable e-commerce sites to offer “Bitcoin accounts” while users maintain custody of their funds. Balances are secured in virtual channels, allowing for instant purchases after initial deposit through simple channel updates.

Join the Community

Documentation

Visit our GitHub repository for documentation, including examples of usage and interactive settlement.

Contribute

  • Report Issues: Found a bug or have a feature request? Open an issue in our repository.
  • Submit PRs: We welcome contributions that improve features, fix bugs, or enhance code quality
  • Get Support: Join our community channels for questions and discussions

Ready to build the future of Bitcoin? Start integrating Ark Wallet SDK today!