This package has been deprecated

Author message:

Package no longer supported. Contact Support at for more info.


0.16.0-beta.1 • Public • Published

Bitcoin Computer

A smart contract system for UTXO-based blockchains. Key features:

  • Smart contract programming in Javascript and Typescript
  • Very low fees through client-side validation
  • Built-in privacy through encryption
  • Optional encrypted off-chain storage for efficient block space usage
  • ES6 compliant module system
  • Does not rely on a side-chain
  • Support for Litecoin with support for Bitcoin and Dogecoin coming soon.

With the Bitcoin Computer, you can build decentralized applications. Examples include fungible and non-fungible tokens, exchanges, games, office applications, social networks, messengers, AI-based applications, and much more.

NEW experimental support for ordinals was added in version 0.14.

Getting Started

To clone this monorepo and install the dependencies, run

npx bitcoin-computer


The examples are in the packages folder. To run an example look at the file in the corresponding folder.


  • Wallet: A minimal non-custodial wallet
  • Chat: A p2p chat application where messages are communicated over the blockchain
  • Fungible Token: An application for minting, sending, and storing fungible tokens
  • Non Fungible Token: An application for minting, sending, and storing non-fungible tokens (NFTs)

Standard Smart Contracts

  • BRC20 contract: A implementation of the ERC20 Fungible Token Standard
  • BRC721 contract: A implementation of the ERC721 Non-Fungible Token Standard


Core Library

The core smart contract library is based on two packages:


If you run your own node, make sure to use the same versions of Lib and Node.

We provide a free Bitcoin Computer Node on Litecoin testnet so you can try out Lib without having to run a node. This node always runs the latest version.


It is free to develop and test a Bitcoin Computer application on testnet and regtest.

We charge a small fee on mainnet to support the development of the Bitcoin Computer. The fee for a function call is satoshis per byte * 475 (average transaction size). The fee for deploying a module is satoshis per byte * data size * 1/4 (making use of the segwit discount). The programer can configure satoshis per byte.

Development Status

We have completed two internal audits and addressed any discovered issues. Currently, there are no known security vulnerabilities, however, it is possible that unknown vulnerabilities may exist. We plan to conduct one more thorough internal security audit prior to recommending the usage of the Bitcoin Computer in production environments.

Documentation and Help

Have a look at the Bitcoin Computer Docs.

If you have any questions, please let us know in our Telegram group, on Twitter, or by email


Bitcoin Computer Lib and Bitcoin Computer Node are licensed under the Creative Commons Attribution-NoDerivs 3.0 Unported License. All other packages in this monorepo are licensed under the MIT License. See the individual packages for more information.




Package Sidebar


npm i bitcoin-computer

Weekly Downloads






Unpacked Size

7.75 kB

Total Files


Last publish


  • clemensley