Skip to main content

Connect headless wallet to testnet

Goal

This article will guide you to connect Hathor headless wallet to testnet.

Requirement

Hathor headless wallet \ge v0.26.0

Step-by-step

  1. Configure headless wallet to connect to testnet.
  2. Obtain HTR tokens on testnet.

Step 1: configure headless wallet to connect to testnet

If you installed your headless wallet from source code, follow these substeps:

  1. Start a shell session.
  2. Change the working directory to <absolute_path_headless>/hathor-wallet-headless/src replacing the <absolute_path_headless> to where you installed the application.
  3. Open the config.js file.
  4. Set testnet as the value for the network key, and 'https://node1.testnet.hathor.network/v1a/' as the value for the server key:
hathor-wallet-headless/src/config.js
module.exports = {

...

network: 'testnet',
server: 'https://node1.testnet.hathor.network/v1a/',

...

};
  1. Restart the application as usual.

Note that your headless wallet will connect to a public full node on testnet. Now, if you want to operate your own full node see Installation of Hathor full node, and set server with your full node's URL.

Step 2: obtain HTR tokens on Testnet

The faucet for Hathor Network's can be accessed at https://faucet.testnet.hathor.network/. You can use this faucet to obtain HTR tokens on testnet for free using your testnet wallet address.

Keep in mind the following resources to connect your wallet to the testnet:

Task completed

You now have a running instance of Hathor headless wallet on testnet. For how to operate and use this application, see Hathor headless wallet pathway.