0.0.9 • Published 3 years ago

@abcpros/xaddress v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

xaddress: The Lotus address format for Node.js and web browsers.

NPM

JavaScript implementation for the new XAddr address format for Lotus.

Compliant with the xaddress specification

Installation

Using NPM

$ npm install --save @abcpros/xaddress

Usage

In Node.js

const xaddress = require('xaddress');
const address = 'lotus_16PSJLk9W86KAZp26x3uM176w6N9vUU8YNQQnQTHN';
const { prefix, type, payload, network } = XAddress.decode(address);
console.log(prefix); // 'lotus'
console.log(network); // MAIN
console.log(type); // ScriptPubKey (0)
console.log(payload); // Buffer [ 118, 160, ..., 115 ] (full script payload)
0.0.9

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago