Signet is a bitcoin test network where coins are free and plentiful. It provides a good opportunity to test Ark without risking real money.In this tutorial you will use bark to send and receive signet coins using the Ark protocol.
To ensure that bark is installed, run bark --version. Follow the installation instructions if you need to.
2
Create a new signet wallet
The first step is to create a new signet wallet. You need to tell the wallet the URL of your Ark server and where it can find chain data.
Use bark --help to see what the command-line program can do. For example, when you want to create a wallet, running bark create --help will give you more info.
Esplora is the easiest chain source to configure. But you can also use your own signet node if you prefer.
Esplora
bitcoind (cookie)
bitcoind (user/pass)
Don’t switch the esplora instance. We are running a version that includes package relay which will be merged in soon.
Getting an error about unexpected datadir contents?If you see an error like Datadir has unexpected contents: ~/.bark/db.sqlite, you likely have a wallet built from an earlier version of Bark. Wallets aren’t always backward compatible between versions, so you’ll need to remove the old data and create a fresh wallet:
VTXOs have a limited lifetime and must be periodically refreshed in a round. Our signet Ark server runs a round every 30 seconds for testing, but be aware that production servers will run rounds much less frequently. When you run the refresh command, you have to wait until the next round starts.
bark refresh --all
Run bark vtxos again to confirm your old VTXO has been replaced by a new one with policy_type set to round.The bark CLI requires you to refresh manually. Wallet apps built on the Bark SDK typically automate refreshes for users.
You can offboard your bitcoin back to a regular on-chain UTXO. This is the cheapest and fastest way to leave Ark.
bark offboard --all
If the Ark server is uncooperative, you can always perform an emergency exit instead. For more on how offboarding works, see Offboarding in the Learn section.
You’ve now completed testing the full lifecycle of transactions on Ark—we’re excited to see what applications you come up with! Let us know if there’s any more guides you’d like to see, and please share any feedback on the developer experience.