Quick Start
This is the fastest and recommanded method to get the binaries : Binaries release are statically linked against all the libraries used for the project. they also are compiled with the same commited code, so they are fully compatible all together.
Download static binaries
Iridium core binaries are available as statically linked binaries for Linux. It should works “as is” form any command line, The latest daemon build is always available at https://github.com/iridiumdev/iridium/releases/latest
Download the Iridium core bz2 archive and extract it (note Latest version is 4.0.1 as of June 21 2018):
$ wget https://github.com/iridiumdev/iridium/releases/download/v4.0.2/Iridium.Core.Linux.4.0.2.tar.bz2 $ tar xjvf Iridium.Core.Linux.4.0.2.tar.bz2 $ cd Iridium.Core.Linux.4.0.2
This is just an example, please check the current version and paths.
You now have an Iridium directory containing 4 binaries :
- iridiumd : the iridium daemon
- iridium_simplewallet : the iridium simplewallet, mainly used for pools, but had RPC methods too
- iridium_walletd : the iridium wallet daemon : mainly for exchange api
- iridium_miner : a simple (and not optimised at all) miner for tests purpose
Starting any binary connect it directly to the iridium network with the default options…
For tests purpose, start it in testnet mode : add --testnet after it.
Each binary contain it's own help, you can show it by calling the bin with –help :
$ ./iridiumd --help $ ./iridium_simplewallet --help $ ./iridium_walletd --help $ ./iridium_miner --help
Starting in testnet mode
the Iridium daemon (iridiumd), RPC wallet daemon (iridium_walled) and the simplewallet can be started in testnet mode for tests and debug purpose. Just add --testnet at the command.
$ mkdir ~/testDB $ ./iridiumd --testnet
Using a configuration file
a configuration file can be used, here is a sample : deamon started with ~/testDB as blockchain storage, ~/ird-testnet.conf as configuration file and in testnet mode
$ cat ~/ird-testnet.conf p2p-bind-port=12017 rpc-bind-ip=0.0.0.0 rpc-bind-port=13017 hide-my-port=1 testnet=1 log-level=2 $ mkdir ~/testDB $ ./iridiumd --data-dir ~/testDB --testnet --config-file ~/ird-testnet.conf
Where do you want to go now :
- Learn how to use the Iridium Wallet Daemon (iridium_walletd)
- start a daemon
- start a simplewallet
Compilation
Install Required Packages
$ sudo apt-get install build-essential libboost-all-dev git cmake $ sudo apt-get update
Get sources
$ git clone https://github.com/iridiumdev/iridium.git
Compile
$ cd iridium $ mkdir iridium-build $ cd iridium-build $ cmake -D STATIC=ON -D CMAKE_BUILD_TYPE=RELEASE .. $ PORTABLE=1 make
after compilation done, binaries are in iridium-build/src :
- iridiumd : Iridium core daemmon
- iridium_simplewalllet : Iridium simple command line wallet mainly used for pools
- iridium_walletd : The Iridium wallet daemon used for applications payments / exchanges
- iridium_miner : a simple iridium core miner not optimized at all used for tests