Install
npm i livescript whitebox -g
Generate Client Wallet
require! \whitebox
{ generate-wallet } = whitebox
{ mnemonic, address } = generate-wallet!
# Please keep your mnemonic in the safe place
Check Status
require! \whitebox
{ get-container } = whitebox
config =
name: \accounts
mnemonic: "your secret private phrase"
node: \https://expresshub-askucher.c9users.io
container = get-container config
container.status (err, result)->
console.log err, result
# running
Get Available Methods
container.methods (err, result)->
console.log err, result
Get Full Container Info
require! \whitebox
{ get-container } = whitebox
config =
name: \accounts
mnemonic: "your secret private phrase"
node: \https://expresshub-askucher.c9users.io
container = get-container config
container.info (err, result)->
console.log err, result
Execute Method
container.method \transfer , { to: "ADDRESS", amount: "0.001" }, (err, result)->
console.log err, result
Stop Container (You must be an owner)
container.stop (err, result)->
console.log err, result
Start Container (You must be an owner)
container.start (err, result)->
console.log err, result
Create New Container (You must have enough funds)
config =
name: \new-container
mnemonic: "your secret private phrase"
container = get-container config
files =
* tags: [\open]
code: "...."
* tags: [\secured]
code: "...."
container.create files, (err, result)->
console.log err, result
Please generate an wallet and ask for funds a.stegno@gmail.com