HYDRA Documentation
  • Introduction to Hydra Chain
  • HydraGon
    • Migrate to HydraGon
    • Staking Calculator
  • Legacy Hydra
  • FAQ
  • Hydra web wallet
    • Create New Wallet
      • Key File Option
      • Mnemonic Words Option
    • Access Your Wallet
      • From Mnemonic Words
      • From Private Key
      • From Key File
    • Send and Receive Assets
      • Receive Assets
      • Send Assets
    • Add HRC20 Token
    • Setup Offline Wallet
  • Hydra web browser extension
    • How to integrate with dApps
  • Hydra for Beginners
  • Ledger Nano Guide
  • Hydra Bridge
  • HydraDEX
    • Adding and Removing Liquidity
    • Liquidity Mining on HydraDEX
  • Useful Links (Legacy)
  • Essentials
    • UTXOs Accounting
    • Test & Main Networks
    • Desktop wallet basic usage
    • Wallet Encrypt, Backup and Restore
    • Hydra Core Wallet Commands
    • Adding Nodes
    • Encrypt and Unlock Hydra Wallet
    • Wallet Recovery With Salvagewallet
    • bech32 support
    • Repositories
    • Hydra Exchange Usage Guide
    • How to Add Options
    • How to Use bootstrap.dat
    • Command Lines (RPC API)
    • Guidance of Hydra Deployment and RPC Settings
    • How to Build Hydra on Raspbian
  • HRC20 Tokens
    • HRC20 Token
    • HRC20 Raw Transactions
    • HRC20 With Hydrachainjs
    • HRC20 DApp
  • HRC721 Tokens
    • HRC721 Token - How to deploy
  • How Transactions Work
  • Hydra Economy (Legacy)
    • The Flexible Supply Mechanism
    • Legacy Staking Calculator
  • Installation Guides
  • Guide for Linux
  • Guide for Raspberry Pi
  • Guide for MacOS
  • Staking HYDRA Coins
    • Setting up Staking
    • Staking with Windows VPS on AWS
    • Staking with Linux on DigitalOcean VPS
    • How to Stake Hydra on Linux
    • Stake With Linux VPS
    • How to Stake on FreeBSD
    • Hydra node health check
    • Superstaking
    • Delegating to Superstaker
    • Delegating via Mobile App or Web Browser
    • Lydra Basics
    • Understanding LYDRA — Key Concepts and Dynamics
  • Hydra Chain Core Team
  • KYC/AML Policy
  • Privacy Policy
  • API Documentation
    • Explorer API (in work)
      • General Blockchain Info
      • Fetching Transaction History for HYDRA and HRC20 tokens
      • Block Info
      • Transaction Info
    • Hydra DEX API
  • Community Tools
    • Github repository
    • Docker image for Hydra Node
    • Hydradex.org Custom Lists
  • Security Audits Hydra Bridge
Powered by GitBook
On this page
  • For Hydra PC wallet(Hydra Core qt wallet)
  • 1. Create hydra.conf file
  • 2. Specify the options
  • 3. Restart wallet
  • Other options
  • For the command-line wallet hydrad
  • Check options list by command line

Was this helpful?

  1. Essentials

How to Add Options

PreviousHydra Exchange Usage GuideNextHow to Use bootstrap.dat

Last updated 4 years ago

Was this helpful?

User can specify extra options (or set configurations) for Hydra node, in order to enable/disable some specific features, other than default settings.

This tutorial describes how to specify options (or configurations) to Hydra node.

For Hydra PC wallet(Hydra Core qt wallet)

(This works for both PC wallet and command-line hydrad wallet)

Hydra PC wallet (i.e. Hydra core qt wallet) is the most widely used Hydra wallet by common users. (Not yet installed a wallet? Please visit to download latest pc wallet)

User can edit Hydra config file to specify some options.

Instructions:

1. Create hydra.conf file

Create a file named hydra.conf under your datadir, the default datadir paths for different OS are different:

  • Linux: ~/.hydra

  • OSX: ~/Library/Application Support/Hydra

  • Windows: %APPDATA%Hydra

    (Please paste this path to your windows explorer, the path will be resolved automatically)

Please be careful and don‘t remove or change any content under this directory except you are aware of them.

(PS: the datadir might be manually set as well, so please create your hydra.conf under the datadir you spcified, if you did)

Still don't know how to create a file? You can also open this hydra.conf on the wallet UI directly System Preference->OPEN CONFIGURATION FILE:

This will create and open the hydra.conf directly for user.

2. Specify the options

User can then specify any option in the file hydra.conf just created.

For example, to specify some rpc related settings, user might add following lines to hydra.conf:

rpcuser=test
rpcpassword=test1234
server=1

This will set rpcuser to test, rpcpassword to test1234, and enable the server feature.

3. Restart wallet

It is required to RESTART the wallet after editing the hydra.conf file, before the options are really effective.

Other options

To learn more about the complete list of all valid Hydra options, please check the pc wallet menu for more details:

Help->Command-line Options:

For the command-line wallet hydrad

If your have no idea about command line, please ignore this section.

For those who are familiar with command line, you can also specify options by adding options when running hydrad.

For example:

./hydrad -rpcuser=test -rpcpassword=test1234 -server=1

These options -rpcuser=test -rpcpassword=test1234 -server=1 realize the same configuration setting as the "Specify the options" section described.

Note that if you specify the options through hydrad command line, same options will be required to add to corresponding hydra-cli command, e.g.:

./hydra-cli -rpcuser=test -rpcpassword=test1234 getinfo

Check options list by command line

You can check the complete option list with:

./hydrad -help
https://github.com/Hydra-Chain/node/releases