Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@psf/bch-js
Advanced tools
bch-js is a JavaScript npm library for creating web and mobile apps that can interact with the Bitcoin Cash (BCH) and eCash (XEC) blockchains. bch-js contains a toolbox of handy tools, and an easy API for talking with bch-api REST API. FullStack.cash offers paid cloud access to bch-api. You can run your own infrastructure by following documentation on CashStack.info.
Here are two YouTube walk-through videos to help you get started:
Install library: npm install @psf/bch-js
Instantiate the library in your code:
const BCHJS = require("@psf/bch-js")
let bchjs = new BCHJS() // Defaults to BCHN network.
This library is intended to be paired with
the bch-api REST API, and the infrastructure provided by FullStack.cash. The restURL
property can be changed to work with different Bitcoin Cash networks:
The bch-api REST API hosted by FullStack.cash uses JWT tokens to pay for increased rate limits when interacting with the back end server. See this article if you want to understand the system-as-a-whole. The JWT token can be fed to bch-js implicitly or explicitly.
BCHJSTOKEN
environment variable.apiToken
property when instantiating the library. Here is an example:const BCHJS = require("@psf/bch-js")
let bchjs = new BCHJS({
restURL: 'https://bchn.fullstack.cash/v5/',
apiToken: 'eyJhbGciO...' // Your JWT token here.
})
minimal-slp-wallet is a minimal wallet 'engine' that incorporates bch-js. It's compiled with Browserify for front end apps.
gatsby-theme-bch-wallet is a Gatsby Theme and bch-wallet-starter is a Gatsby Starter for building web wallets using minimal-slp-wallet.
This gist shows how to include minimal-slp-wallet into a basic web page without using a framework.
ECMAScript 2017 standard JavaScript used instead of TypeScript. Works natively with node.js v10 or higher.
Full SLP tokens support: bch-js has full support for all SLP token functionality, including send, mint, and genesis transactions. It also fully supports all aspects of non-fugible tokans (NFTs).
Semantic Release for continuous delivery using semantic versioning.
IPFS and Radicle uploads of all files and dependencies, to backup dependencies in case they are ever inaccessible from GitHub or npm.
Full documentation for this library can be found here:
bch-js uses APIDOC so that documentation and working code live in the same repository. To generate the documentation:
npm run docs
docs/index.html
file in a web browser.Have questions? Need help? Join our community support Telegram channel
This open source software is developed and maintained by the Permissionless Software Foundation. If this library provides value to you, please consider making a donation to support the PSF developers:
bitcoincash:qqsrke9lh257tqen99dkyy2emh4uty0vky9y0z0lsr
Copies of this repository are also published on IPFS.
bafybeifsioj3ba77u2763nsyuzq53gtbdxsnqpoipvdl4immj6ytznjaoy
bafybeihfendd4oj6uxvvecm7sluobwwhpb5wdcxhvhmx56e667nxdncd4a
They are also posted to the Radicle:
rad:git:hnrkkroqnbfwj6uxpfjuhspoxnfm4i8e6oqwy
FAQs
A JavaScript library for working with Bitcoin Cash, eCash, and SLP Tokens
The npm package @psf/bch-js receives a total of 0 weekly downloads. As such, @psf/bch-js popularity was classified as not popular.
We found that @psf/bch-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.