Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.65 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.65 KB

This directory contains a series of small examples apps that illustrate how to code up common use cases for a SLP wallet and managing tokens.

Running Examples

You can run each example script by entering its directory and executing npm start

General BCH Functions

  • create-wallet Create a SLP compatible HD Node wallet on the BCH mainnet. Send a small amount of BCH (0.0001 or more) to the address saved in the wallet.json file generated by this app. All other example apps read this wallet.json file.

  • check-token-balance Check the token balance of your BCH wallet for a single tokenId

  • check-balances Check the balance of your BCH wallet. This displays both BCH information as well as SLP token information.

SLP Token Functions