@ekliptor/payjs
v1.0.0
Published
TypeScript wrapper app for common payment features in the browser.
Readme
PayJs
A wrapper for bitcore-lib-cash and other SLP payment libs to expose those APIs on the global browser window.
Features
- Wallets: Create Wallets and BIP44 addresses
- Transactions: Create, validate and sign transactions
- SLP tokens: Validate SLP tokens and create transactions
Installation
git clone https://github.com/ChainTube/payjsAPI
In your HTML page include the following script tag:
<script src="bundle.js"></script>This exposes the window.payjs object:
{
bchaddrjs: "...", // see API https://github.com/ealmansi/bchaddrjs
bignumber: "...", // see API https://github.com/MikeMcl/bignumber.js/
bitcore: "...", // see API https://github.com/ChainTube/bitcore
buffer: "...", // see API https://github.com/feross/buffer
slpmdm: "..." // see API https://github.com/simpleledger/slp-metadatamaker.js
}Compiling from source
yarn install # once
yarn watch # while editingRunning tests
In the project root directory, just run:
yarn test