#
Lib
The Bitcoin Computer Library (available on Github and Npm) provides all the functionality needed to write smart contracts with the Bitcoin Computer.
To interface with the blockchain, the Bitcoin Computer Lib connects to a Bitcoin Computer node. By default the Bitcoin Computer Lib connects to a node in regtest node that we provide. You can find more information about configuration options in the section constructor.
#
Api
#
Basic
You can build almost all smart contracts with following methods.
#
Advanced
To build advanced applications like swaps have a look at the following.
#
Modules
You can save transaction fees by using our ES6 module system.
#
Wallet
The wallet functionality within a Computer
instance can be accessed using the following.