Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.27 KB

README.md

File metadata and controls

40 lines (25 loc) · 1.27 KB

Dmarket Cryptocurrency Tutorial

Dmarket Blockchain test version uses Exonum framework(v0.2).

Prerequisites

To run this example you need to install Rust compiler and third-party libraries.

Build & Run

Blockchain Node

To build and run a single node use:

# clone the repository with blockchain node
git clone git@github.com:suntechsoft/dmarket-blockchain.git
cd dmarket-blockchain

# build and run
cargo run

Now the node is listening HTTP requests on localhost:8000.

Sample Transactions & Read Requests

When node is launched, you can use transaction examples to check that it works properly. A simplest way to do this is launching the test.sh script in the examples directory. This script creates two wallets, performs a transfer among them, and then verifies that the wallet status was correctly updated.

Alternatively, you may use command-line utilities, such as curl, to manually POST transactions on the transaction endpoint.

License

DMarket Cryptocurrency is licensed under the MIT License . See LICENSE for details.