JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 87
  • Score
    100M100P100Q82576F
  • License MIT

Decode all things bitcoin

Package Exports

  • bitcoin-decoder

Readme

bitcoin-decoder

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.