Get started with bchaddrjs CDN
MIT licensed
Bchaddrjs is a Bitcoin Cash address validation library for Node.js.
Tags:- bitcoin-cash
- bitcoin
- bch
- cryptocurrency
- address
- encoding
- translation
- base58
- bitpay
- cash-address
Stable version
Copied!
How to start using bchaddrjs CDN
// Include bchaddrjs library from CDN
const BCHaddr = require('bchaddrjs')(window.BitcoinCash);
// Your Bitcoin Cash public key
const publicKey = '0333333333333333333333333333333333333333333333333333333333333333';
// Generate Bitcoin Cash address from public key
const address = BCHaddr.toCashAddress(publicKey);
// Output the generated address
console.log(address);
Copied!
Copied!