All Projects → ealmansi → cashaddrjs

ealmansi / cashaddrjs

Licence: MIT license
CashAddr.js: The new Bitcoin Cash address format for Node.js and web browsers.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to cashaddrjs

bitcoincashjs
WARNING: This project is no longer maintained. Please, use bitcore-lib-cash instead.
Stars: ✭ 80 (+122.22%)
Mutual labels:  address, cashaddr
cashaddress
Python tool for convert bitcoin cash legacy addresses
Stars: ✭ 40 (+11.11%)
Mutual labels:  address, cashaddr
Indicators
Activity Indicators for Modern C++
Stars: ✭ 1,838 (+5005.56%)
Mutual labels:  format
lit-date
Light-weight, faster datetime formatter for modern browsers.
Stars: ✭ 33 (-8.33%)
Mutual labels:  format
Vuetify Daterange Picker
The missing date range picker for Vuetify JS you have been looking for.
Stars: ✭ 192 (+433.33%)
Mutual labels:  format
Markdown Css
A tool convert css style into markdown inline style
Stars: ✭ 122 (+238.89%)
Mutual labels:  format
China
🇨🇳 一个轻巧的中国的地区、民族以及节假日信息的查询PHP库
Stars: ✭ 51 (+41.67%)
Mutual labels:  address
Time Stamp
Get a formatted timestamp. Used in gulp, assemble, generate, and many others.
Stars: ✭ 104 (+188.89%)
Mutual labels:  format
FormatEditText
格式化输入框,可用来格式化数字、金额、号码等; FormatEditText can be used as a formatted text input box
Stars: ✭ 121 (+236.11%)
Mutual labels:  format
Activitystreams
Activity Streams 2.0
Stars: ✭ 185 (+413.89%)
Mutual labels:  format
administrative-divisions-of-China-on-Python
中华人民共和国行政区划爬虫,分为省级、地级、县级、乡级、村级,最多五级连动,可通过本项目自行爬取数据也可使用本项目在线接口直接调用。
Stars: ✭ 91 (+152.78%)
Mutual labels:  address
Printj
📜 sprintf for JS
Stars: ✭ 182 (+405.56%)
Mutual labels:  format
Hrconvert2
A self-hosted, drag-and-drop, & nosql file conversion server that supports 62x file formats.
Stars: ✭ 132 (+266.67%)
Mutual labels:  format
jodaTime
Format and Parse date and time with joda layout
Stars: ✭ 67 (+86.11%)
Mutual labels:  format
Go Plus
An Enhanced Go Experience For The Atom Editor
Stars: ✭ 1,519 (+4119.44%)
Mutual labels:  format
bitcoin-address-validator
PHP package to validate legacy, segwit, native segwit (bech32) and taproot Bitcoin addresses
Stars: ✭ 30 (-16.67%)
Mutual labels:  address
Psycho.r
An R package for experimental psychologists
Stars: ✭ 113 (+213.89%)
Mutual labels:  format
Isobmff
C++ Library for ISO/IEC 14496-12 - ISO Base Media File Format (QuickTime, MPEG-4, HEIF, etc)
Stars: ✭ 157 (+336.11%)
Mutual labels:  format
Uncrustify
Code beautifier
Stars: ✭ 2,442 (+6683.33%)
Mutual labels:  format
vue-thailand-address-autocomplete
🇹🇭 Autocomplete ที่อยู่ในประเทศไทย
Stars: ✭ 49 (+36.11%)
Mutual labels:  address

CashAddr.js: The new Bitcoin Cash address format for Node.js and web browsers.

Build Status Coverage Status

NPM

JavaScript implementation for the new CashAddr address format for Bitcoin Cash.

Compliant with the original CashAddr specification which improves upon BIP 173.

Note: This is a JavaScript implementation of the CashAddr format specification. If you are looking for a general purpose Bitcoin Cash address translation library, check out the easy-to-use and well-tested BchAddr.js.

Installation

Using NPM

$ npm install --save cashaddrjs

Using Bower

$ bower install --save cashaddrjs

Manually

You may also download the distribution file manually and place it within your third-party scripts directory: dist/cashaddrjs-0.4.4.min.js.

Usage

In Node.js

const cashaddr = require('cashaddrjs');
const address = 'bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a';
const { prefix, type, hash } = cashaddr.decode(address);
console.log(prefix); // 'bitcoincash'
console.log(type); // 'P2PKH'
console.log(hash); // Uint8Array [ 118, 160, ..., 115 ]
console.log(cashaddr.encode(prefix, type, hash)); // 'bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a'

Note: This is a JavaScript implementation of the CashAddr format specification. If you are looking for an easy-to-use and well-tested library to translate between different formats, check out BchAddr.js.

Browser

Script Tag

You may include a script tag in your HTML and the cashaddr module will be defined globally on subsequent scripts.

<html>
  <head>
    ...
    <script src="https://unpkg.com/[email protected]/dist/cashaddrjs-0.4.4.min.js"></script>
  </head>
  ...
</html>

Documentation

Generate and Browse Locally

$ npm run docs

Online

Browse automatically generated jsdocs online.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].