AmberChain is the blockchain implementation for the AmberTime platform. AmberTime blockchain is focused on providing a platform for education + travel applications.
AmberChain is based on the popular open source MultiChain, customized with a host of innovative features including new API calls, support for an ecommerce marketplace, automated escrow management, and additional transaction fee parameters.
Copyright (c) 2018 Apsaras Group Ltd
License: GNU General Public License version 3, see COPYING
Portions copyright (c) 2014-2017 Coin Sciences Ltd
Portions copyright (c) 2009-2016 The Bitcoin Core developers
Portions copyright many others - see individual files
Details on the API calls developed for AmberTime Blockhain can be found here.
Refer to the original multichain instructions here
-
Clone the AmberChain repository on your local directory
# if git is not installed sudo apt-get install git git clone https://github.com/ambertime/amberchain.git
-
Install the required tools and libraries
sudo apt-get update sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils sudo apt-get install libboost-all-dev sudo apt-get install software-properties-common sudo add-apt-repository ppa:bitcoin/bitcoin sudo apt-get update sudo apt-get install libdb4.8-dev libdb4.8++-dev
-
Build the Chain
Compile Amberchain for Ubuntu (64-bit)
# amberchain/src > ./autogen.sh ./configure make # this will take a few minutes to build the chain
-
This will build
amberchaind
,amberchain-cli
andamberchain-util
in thesrc
directory. -
The release is built with GCC after which
strip amberchaind
strings the debug symbols, which reduces the executable size by about 90%.
-
Connect to the AmberChain testnet
*To connect to the currently deployed amber-testnet chain, run any of the following:
./amberchaind [email protected]:7362
./amberchaind [email protected]:7362
./amberchaind [email protected]:7362
-
Run the Chain CLI
# amberchain/src > ./amberchain-cli <chain name> # ie: ./amberchain-cli amber-testchain
- You can run the help command in the CLI to see a list of APIs
- help shows a detailed description of th API and parameters
# amber-testchain > help help listaddresses
-
Stop the Chain
- You can stop the chain by running the stop command from outside the CLI
# amberchain/src > ./amberchain-cli <chain name> stop # ie. ./amberchain-cli amber-testchain stop
- Inside the CLI
# amber-testchain > stop bye