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

  • iOS 14+ or macOS 12+
  • Swift 5.9+, Xcode 15+

Getting started

1

Install the SDK

In Xcode, go to File > Add Package Dependencies and enter:
2

Create a wallet

Generate a BIP39 mnemonic, 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.
open is a reserved keyword in Swift. If you need to load an existing wallet, use backticks: try await Wallet.`open`(mnemonic:config:datadir:).
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

Source and examples

Full Swift source and example projects on GitLab.

How Ark works

Learn about the protocol powering your wallet.