Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

HandCash/handcash-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HandCash

Helper methods for HandCash's API.

Usage

Installation

npm install handcash

Require the lib

let hc = require('handcash');

Instantiate w/ network passed in via config

Config options for network are testnet and mainnet.

let handcash = new hc({network: "testnet"});

Get receive address for $handle

handcash.receive('rjseibane').then((res) => {
  console.log(res);
  // { receivingAddress: 'mxszqDyaNGFcmTkPjJ2BGRpSTChdVWaNPZ',
  // publicKey:
  //  '03d193439a2f06ed1121be5b4e61381386ffee5ec5bec33daf17e33ccb34622753' }
});

All together

// 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' }
});

About

Javascript lib for handcash's API @ http://handcash.io/api-docs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •