Skip to content

ItMrj/amberchain

Repository files navigation

AmberChain

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

Documentation

Details on the API calls developed for AmberTime Blockhain can be found here.

Setup instructions

Refer to the original multichain instructions here


Linux Build Notes (on Ubuntu 14.04 x64)

  1. 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
  2. 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
  3. Build the Chain

    Compile Amberchain for Ubuntu (64-bit)

    # amberchain/src >
    make
    # this will take a few minutes  to build the chain
  • This will build amberchaind, amberchain-cli and amberchain-util in the src directory.

  • The release is built with GCC after which strip amberchaind strings the debug symbols, which reduces the executable size by about 90%.

  1. Connect to the AmberChain testnet

    *To connect to the currently deployed amber-testnet chain, run any of the following:

  2. 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 
  3. 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

About

Source code for Ambertime blockchain platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 82.2%
  • C 11.8%
  • M4 2.4%
  • Makefile 1.6%
  • Objective-C 0.9%
  • HTML 0.9%
  • Other 0.2%