Minimal Exonum blockchain example.
To run this example you need to install Rust compiler and third-party libraries.
To build and run a single node use:
# clone the repository with blockchain node
git clone git@github.com:exonum/cryptocurrency.git
cd cryptocurrency
# build and run
cargo runNow the node is listening HTTP requests on localhost:8000.
When node is launched you can use transaction examples to check it:
cd ./examples
# every `curl` call returns hash of sent transactions
# create 1st wallet and add funds
curl -H "Content-Type: application/json" -X POST -d @create-wallet-1.json \
http://127.0.0.1:8000/api/services/cryptocurrency/v1/wallets/transaction
# create 2nd wallet and add funds
curl -H "Content-Type: application/json" -X POST -d @create-wallet-2.json \
http://127.0.0.1:8000/api/services/cryptocurrency/v1/wallets/transaction
# transfer funds from 1st to 2nd
curl -H "Content-Type: application/json" -X POST -d @transfer-funds.json \
http://127.0.0.1:8000/api/services/cryptocurrency/v1/wallets/transactionCryptocurrency is licensed under the Apache License (Version 2.0). See LICENSE for details.