crypto-address-decoder
v1.0.1
Published
Decodes an address to its pubkeyhash and prefix
Downloads
9
Readme
crypto-address-decoder
Installation
npm install crypto-address-decoder
Usage
const addressDecoder=require('crypto-address-decoder');
const {prefix,data}=addressDecoder('DUBhARNpy4WYCEWoFQsgeFeYZxQjzQadpv');
also works for bech32 addresses
const addressDecoder=require('crypto-address-decoder');
const {prefix,data}=addressDecoder('dgb1qcu403j8m7kdsrl74279qhlyg36adkgwdxpf0jl');