You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 20, 2026. It is now read-only.
Davide Miceli edited this page Jan 29, 2019
·
2 revisions
Node.js SDK
To handle a chainode peer, there is also the javascript SDK.
Follow the example:
'use strict';// Require chainode packageconstChainode=require('chainode');// Run peerconstrunPeer=async()=>{try{// Configurationsconstconfigs={...};// Init the peerconstagent=newChainode(configs);awaitagent.start();returnagent;}catch(err){console.error(err.message);}}// Start peerrunPeer().then(peer=>{// Do something with peer...}).catch(console.error);