hybrixd
The hybrix platform environment can be run on your own personal computer or server by downloading the daemon called hybrixd. This makes it possible to host your own wallet, be your own bank and have a powerful multi-blockchain system at your fingertips.
Quick start
hybrixd can be run on the following operating systems:
- GNU/Linux
- MacOS (Darwin)
- Windows Subsystem for Linux (link)
Furthermore, hybrixd requires NodeJS. We recommend using NodeJS version 12.
To install download the latest release above, and extract
the zip file to your computer. You can now start hybrixd
using the following command: ./hybrixd
Using hybrixd
Web wallet
Browse to http://localhost:8080
to access the web wallet.
REST-API
Use http://localhost:1111
or http://localhost:8080/api
to access the REST API. The distinction between the 8080 and 1111 ports is that the first is for public access and the later for restricted root access.
You can perform API calls using a browser or curl
commands:
Example
curl http://localhost:8080/api/asset/btc/balance/32FCGFdRGeho2HBeWQPaAYawJfPqHHvsCJ
See also: REST API reference.
Command-line interface
Perform REST API calls from the command line by using the following structure:
Example
./hybrixd /asset/btc/balance/32FCGFdRGeho2HBeWQPaAYawJfPqHHvsCJ
.
See ./hybrixd --help
to view available command-line options and browse to REST API for reference.
Configuring hybrixd
General settings for hybrixd can be configured using the configuration file: hybrixd.conf
See hybrixd.conf.example
for an example configuration.
hostdescription
servers
: Define the servers [default = {"http://127.0.0.1:1111":"/root","http://127.0.0.1:8080":"/source/web-wallet","http://127.0.0.1:8090":"/source/web-blockexplorer"}]
ignoretlserror
: [default = true]
defaultmaxlisteners
: Set the amount of listeners for the http server socket [default = 30]
private-token
: Set the private token to access root function through non root servers.
socksdescription
proxyhost
: (local) Proxy host for socks connections [default = "127.0.0.1"]
proxyport
: (local) Proxy port for socks connections
schedulerdescription
procpurgetime
: Amount of time before a stale process gets cleaned up. [default = 60 seconds]
maxparallelprocesses
: Maximum number of qrtz processes [default = 10000000]
tick
: Tick frequency for process steps [default = 1 milliseconds]
maxusage
: Maximum thread usage [default = 95 %]
cachedescription
maxentries
: [default = 20000 objects]
cleanupinterval
: [default = 1000 milliseconds]
freshthreshold
: [default = 5000 milliseconds]
logdescription
output
: Whether to output logs to stdout [default = true]
maxfilesize
: Max log file size [default = 500 Mb]
hstatloglocation
: Location(s) of log files. [default = "./var/log/hybrixd.log"]
storagedescription
storagePath
: Location of storage files. [default = "../storage"]
storageLimitdescription
maxStorageDaysdescription
minStorageDaysdescription
substorageIdLengthdescription
synchronizedescription
enabled
: [default = true]
endpoints
: [default = []]
bootstrap
: [default = ["https://api.hybrix.io","https://wallet.hybrix.io/api"]]
maxPeers
: [default = 100]
maxStorageHops
: [default = 3]
maxFilesPerSync
: [default = 12]
allocationdescription
enabled
: [default = false]
notifications
: [default = ""]
securitySymbol
: [default = "hy"]
securityTransferFee
: [default = 0.1]
securityContractFee
: [default = 0.001]
securityRiskFactor
: [default = 2]
securityReleaseCron
: [default = 1]
securityMinimalDeposit
: [default = 10]
liquidityPercentage
: [default = 30]
allocationBalanceCacheTime
: [default = 600]
allocationAddressCacheTime
: [default = 86400]
ledgers
: [default = ["hy","eur","usd","cny"]]
banking
: [default = {}]
bankingdescription
enabled
: [default = true]
ledgers
: [default = {}]
methods
: [default = {}]
dealdescription
enabled
: [default = false]
smtpdescription
enabled
: [default = true]
host
: [default = null]
port
: [default = 465]
from
: [default = null]
ssl
: [default = true]
username
: [default = null]
password
: [default = null]
swapdescription
enabled
: [default = true]
fasthost
: [default = null]
host
: [default = ["tor://57wcnwyusa4kibtsjsf277cyhedhjyyyvmrsjbar4wsaqfc4dpunwyid.onion","tor://ics74u7cg6zixtii62lrgbrfvpp3hwtlby3vxjkiilmatjea4bwpokid.onion","tor://aasv52ix53xwxs7w62dz7o7bupfjnokihztnkjxotp64hq4jpqscjjqd.onion","tor://3akw24wdagw7u4oyhnjuzpi6eicwtfg5ra5sobf3ocis77eilyi7k5ad.onion","tor://qhzv5ompgzedviakej3phbsy5gq7npd6mzowfjnuwwmtohikqafzfzyd.onion"]]
valuationsdescription
enabled
: [default = true]