Skip to content
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
sidechain
.gitignore
README.md

README.md

Develop Blockchain Apps with Sidechain Technology - Part 2

Develop Blockchain Apps with Sidechain Technology - Part 2

Folder structure

You need the Asch blockchain in the asch directory right beside the sidechain directory.

asch
   └───app.js
   └───aschd
   └───...
sidechain
   └───contract/
   └───interface/
   └───...

Install tooling

Be sure to have asch-redeploy installed:

npm install --global asch-redeploy

Start Sidechain

Execute asch-redeploy in the sidechain directory:

sidechain$ asch-redeploy

Access Sidechain

Open new terminal, install all dependencies:

sidechain/api_access$ npm install

Add new article:

sidechain/api_access$ node index.js postArticle "Asch Sidechain - Part 2" "Article content"

Load all articles:

sidechain/api_access$ node index.js getArticle
You can’t perform that action at this time.