npm.io
0.7.0 • Published 2d ago

bitcoin-decoder

Licence
MIT
Version
0.7.0
Deps
5
Size
77 kB
Vulns
0
Weekly
172

bitcoin-decoder

Homepage npm Version License

Installation

npm install bitcoin-decoder

Quick Start

import { decode } from "bitcoin-decoder";

const result = decode("1111111111111111111114oLvT2");

Privacy

Most decoders run fully offline, but transaction lookup (opts.transaction.fetch) and Nostr profile fetch (opts.nostr.fetchProfile) hit third-party servers by default (mempool.space and public relays).

Your IP and the queried txid/npub leak to whoever runs them. Pass opts.transaction.endpoint / opts.nostr.relays to point at your own infrastructure if that matters.

Features

See FEATURES.md for the full list of supported formats.

Contributing

Thinking of opening a pull request? See our contribution guide for dependencies, style guidelines, and code hygiene expectations.

License

Released under the MIT license.

Keywords