Skip to main content
The bark-wallet crate gives you direct access to the core Bark wallet library.

Use this prompt to get started quickly.

Open in Cursor
These examples connect to signet so you can test for free. To go live, point the same configuration at Second’s mainnet endpoints from Test on mainnet and select the mainnet network.

Prerequisites

  • Rust 1.77+ with Cargo
  • Tokio async runtime (1.35+)

Getting started

1

Add the dependency

You will also need Tokio as the async runtime:
2

Create a wallet

Generate a BIP39 mnemonic, configure the wallet to use the signet test network, and initialize it.
Back up the mnemonic securely, and back up wallet data continuously. Both are required to restore a wallet.
3

Get a receiving address

Generate an Ark address to receive bitcoin.
Send some signet sats to this address using the faucet.
4

Check your balance

Sync the wallet with the Ark server and read your balance.

Next steps

API reference

Full Rust API documentation on docs.rs.

How Ark works

Learn about the protocol powering your wallet.