Credo Blockchain

How to Install a Credo Blockchain Testnet Node (OS X)

November 13, 2018


How to Install a Credo Blockchain Testnet Node (OS X)

This tutorial covers how to install and run a Credo Blockchain node that operates in the test network on an OS X machine.

Here are the steps:

  1. Download the file by clicking here.
  2. Double click on the downloaded file to unzip it.
  3. Open your Terminal application (you can search for that using Spotlight if you’re unfamiliar with it).
  1. If you don’t have homebrew installed (you can check by running brew --version), run this command:

/usr/bin/ruby -e "$(curl -fsSL"

  1. Run the following commands in your terminal to install dependencies:

brew update

brew install elixir

brew install gmp

brew install libsodium

  1. Run the following command in your terminal: ~/Downloads/credo_core_node/bin/credo_core_node foreground

You should then see output on your terminal from the running node, like so:

That’s it. You can now interact with the node via a simple REST interface.

Here are a few example commands to get started with:

Create account:

curl --data '{"label": "test"}' --header "Content-Type: application/json"

Show account balance:

curl --header "Content-Type: application/json"<address>

Create pending transaction:

curl --data '{"nonce": 1, "value": 100, "fee": 1, "to": "0x819f1907c15516c3b1f95e9519e20e9dc69af1e0"}' --header "Content-Type: application/json" --header "X-Ccn-Private-Key: <privatekey>"

We’ll publish additional tutorials, documentation, and add more content to our Wiki in the future to expand on the above. For now, that’s all there is to it for installing, running, and using a Credo Blockchain node!