Helper methods for HandCash's API.
npm install handcash
let hc = require('handcash');
Config options for network
are testnet
and mainnet
. Currently only testnet
supported.
let handcash = new hc({network: "testnet"});
handcash.receive('rjseibane').then((res) => {
console.log(res);
// { receivingAddress: 'mxszqDyaNGFcmTkPjJ2BGRpSTChdVWaNPZ',
// publicKey:
// '03d193439a2f06ed1121be5b4e61381386ffee5ec5bec33daf17e33ccb34622753' }
});
// require lib
let hc = require('handcash');
// instantiate
let handcash = new hc({network: "testnet"});
// get receive address for $handle
handcash.receive('rjseibane').then((res) => {
console.log(res);
// { receivingAddress: 'mxszqDyaNGFcmTkPjJ2BGRpSTChdVWaNPZ',
// publicKey:
// '03d193439a2f06ed1121be5b4e61381386ffee5ec5bec33daf17e33ccb34622753' }
});