Test & Main Networks

Test & Main Networks

The Testnet and Mainnet are using different ports. For Testnet port 1334 is used. For Mainnet port 3338 is used. Testnet is started using the -testnet flag when starting up the wallet. For Windows and Linux systems the same application is used for starting up in Testnet when the -testnet flag is added. In Windows the program properties shortcut 'Target' would look like this if running in testnet mode: "C:\Program Files\LockTrip\locktrip-qt.exe" -testnetIn Linux to run in testnet add the -testnet flag for the daemon or for the GUI: ./hydrad -daemon -testnet or ./hydra-qt -testnet

Testnet and Mainnet wallets are stored in different folders. The Testnet wallet and chain information for windows is stored in: %AppData%/Roaming/HYDRA/testnet7/ The Mainnet data is stored in the root of the directory: %AppData%/Roaming/HYDRA/ For Linux systems the wallet and chain information is in: ~/.hydra/ and Testnet is in: ~/.hydra/testnet7/

Testnet exporer: https://testexplorer.hydrachain.org/

Mainnet explorer: https://explorer.hydrachain.org/

It takes some time to download the blockchain data from the network. If you hae started in non daemon mode you'll see log messages like this stream by:

06:41:56 hydrad | 2017-12-14 06:41:56 UpdateTip: new best=000054cbb176ed62b2f6fc335204bee4b7ce5f658b8f7cfff6961c25c9a54cf9 height=2094 version=0x20000003 log2_work=27.032757 tx=2095 date='2017-09-08 05:50:54' progress=0.000638 cache=0.4MiB(2094txo)
06:41:56 hydrad | 2017-12-14 06:41:56 ProcessNetBlock: ACCEPTED
06:41:56 hydrad | 2017-12-14 06:41:56 UpdateTip: new best=0000924e3af343bd41f0476b92aeef4e46d748db436d5a5074f337989b7ffba7 height=2095 version=0x20000003 log2_work=27.033445 tx=2096 date='2017-09-08 05:50:54' progress=0.000638 cache=0.4MiB(2095txo)
06:41:56 hydrad | 2017-12-14 06:41:56 ProcessNetBlock: ACCEPTED
06:41:56 hydrad | 2017-12-14 06:41:56 UpdateTip: new best=0000bf6616615286a786f0ec59c3881f48e1b1a49367779f33753a027b099c31 height=2096 version=0x20000003 log2_work=27.034133 tx=2097 date='2017-09-08 05:50:54' progress=0.000638 cache=0.4MiB(2096txo)
06:41:56 hydrad | 2017-12-14 06:41:56 ProcessNetBlock: ACCEPTED
// synchronizing with network...
  • progress approaches 1.0 (100%) as your local node catch up to the network.

  • height the latest block that had been synced.

Visit the Testnet Block Explorer to see some stats about the test network. In particular, it lists the latest blocks mined, so you can get a rough idea of how far along you are in the synchronization process:

As of Mid-November 2020, the block height is about 10,000ish.

Getting Testnet Tokens

For the testnet you are not allowed to generate or mine new blocks to get tokens. Rather, you can request some free tokens from the testnet faucet:

https://faucet.hydrachain.org/

First generate a new payment address:

hydra-cli -testnet getnewaddress
Ts4r4cxhdQFAPtPeUYxfCQGe5P2afFjywV

Then copy it into the input box:

https://faucet.hydrachain.org/

Once accepted, you should see your address and amount in the list of latest payouts:

Clicking on the pay out address, you'd see a link to view the transaction in the testnet block explorer:

https://testexplorer.hydrachain.org/address/Ts4r4cxhdQFAPtPeUYxfCQGe5P2afFjywV/

Once it's confirmed, you can check your balance locally:

hydra-cli -testnet getbalance
94.00000000

You can also see the UTXOs created for that amount:

hydra-cli -testnet listunspent
[
{
"txid": "2a8997d398633bc01c97fc623a59aaca4f678caf2d3949f4679e1f0f5952479f",
"vout": 0,
"address": "hcf3Yv72SbLvVDmU99BMf5T1YwvdvA3fx6",
"account": "",
"scriptPubKey": "76a914d17c851679a8ca558d9d783643cc926f7a382e7888ac",
"amount": 94.00000000,
"confirmations": 23,
"spendable": true,
"solvable": true
}
]

Main Network

To connect to the Mainnet, set hydra to start without the "-testnet" flag on port 3338

./hydrad -daemon

Links

The Webwallet can be found at: https://webwallet.hydrachain.org/

The Testnet Explorer can be viewed at: https://testexplorer.hydrachain.org/

The Testnet Faucet is at: https://faucet.hydrachain.org/

The Mainnet Explorer can be viewed at: https://explorer.hydachain.org/