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.
You can run each example script by entering its directory and executing npm start
-
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 thiswallet.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.
-
create-token - Create a new SLP token class. Run the create-wallet example first, and fund your wallet with a few cents of BCH first.
-
create-nft - Create a new SLP non-fungible token. Run the create-wallet example first, and fund your wallet with a few cents of BCH first.
-
mint-token - Mint additional SLP tokens for an existing class controlled by your wallet.
-
send-token - Send tokens from your address to another address.
-
burn-all - Burn all tokens for an address by tokenId.
-
lookup-token - Lookup token information based on the token
id
. -
list-all-tokens - List every token in existence.
-
conversion - Convert between address formats.