liquidjs-lib
v6.0.2-liquid.36
Published
Client-side Liquid JavaScript library
Downloads
2,744
Readme
LiquidJS
The following library forks bitcoinjs/bitcoinjs-lib
and contains modifications that are necessary for support of elements-based blockchains such as Blockstream Liquid
Released under the terms of the MIT LICENSE.
Examples
The below examples are implemented as integration tests (as in bitcoinjs-lib).
- Create a 1-to-1 Transaction
- Create a 1-to-1 confidential Transaction
- Create (and broadcast via 3PBP) a typical Transaction
- Create (and broadcast via 3PBP) a confidential Transaction
- Create (and broadcast via 3PBP) a Transaction with an OP_RETURN output
- Create (and broadcast via 3PBP) a Transaction, with a 2-of-4 P2SH(multisig) input
- Create (and broadcast via 3PBP) a Transaction, with a SegWit P2SH(P2WPKH) input
- Create (and broadcast via 3PBP) a confidential Transaction, with a SegWit P2SH(P2WPKH) input
- Create (and broadcast via 3PBP) a Transaction, with a SegWit P2WPKH input
- Create (and broadcast via 3PBP) a confidential Transaction, with a SegWit P2WPKH input
- Create (and broadcast via 3PBP) a Transaction, with a SegWit P2PK input
- Create (and broadcast via 3PBP) a confidential Transaction, with a SegWit P2PK input
- Create (and broadcast via 3PBP) a Transaction, with a SegWit 3-of-4 P2SH(P2WSH(multisig) input
- Create (and broadcast via 3PBP) a confidential Transaction, with a SegWit 3-of-4 P2SH(P2WSH(multisig) input
- Create (and broadcast via 3PBP) a Transaction and sign with an HDSigner interface (bip32)
- Create (and broadcast via 3PBP) a confidential Transaction and sign with an HDSigner interface (bip32)
Bundle
$ browserify src/index.js --standalone liquid > bundle.js