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