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