1.0.10 • Published 5 years ago
multichainsdk v1.0.10
multichainsdk
multichainsdk node moudule enable developers to reduce their developement time. This module will help to communicate with multichain.
Multichainsdk is basically advanced version of multichain-node ( node module) it has dependency of multichain-node.
- We have made this node module to reduce the repetition of same code and logic.
- It covers all the rpccalls you just need to pass the inputs which is required for multichain rpccalls rest all multichainsdk will handles by itself.
- It was initially started with the mindset of reducing the code size and ease of development.
Installation Steps
1.npm i multichainsdk
2.sudo git clone https://github.com/dhananjay-primechain/multichainsdk.git
example to use multichainsdk
var multichainsdk = require('mutichainsdk');
multichainsdk.issueFrom({
from: from_address
to: to_address,
asset: {
name: asset_name,
open: true/false
},
quantity: quantity,
}).then((res)=>{
return resolve({
status: 200,
response:"response from multichainsdk."
})
}).catch((err)=>{
return reject({
status: 401,
response : err.message,
})
})
})
})
Happy Coding! Thank You!