Skip to main content

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

  • Dart SDK 3.11+ / Flutter 3.x+
  • Rust toolchain (rustup, cargo, rustc). The bark_bitcoin package compiles its Rust core at build time using Dart’s Native Assets feature.

Getting started

1

Install the SDK

Then run:
2

Create a wallet

Configure the wallet for signet 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.
sync is a reserved keyword in Dart. The method is named sync_() with a trailing underscore.

Next steps

Source and examples

Full Dart source and example projects on GitLab.

How Ark works

Learn about the protocol powering your wallet.