This is a quick demo of Counterstake SDK in a node.js app. The demo script sends some coins from Ethereum to Obyte through Counterstake Bridge and has them immediately converted to other coins via Oswap.io.
git clone https://github.com/byteball/counterstake-demo-client
cd counterstake-demo-client
npm install
Copy .env.sample
to .env
and edit.
node run.js
See the source code of run.js to learn how to use Counterstake SDK in your node.js apps.