README
hash-wrap
Get an SPV envelope for any transaction
The code is hosted on GitHub and the package is available through NPM.
Installation
npm i hash-wrap
Example Usage
const hashwrap = require('hashwrap')
// You just need the TXID
// Envelope is an object that contains an SPV envelope
const envelope = await hashwrap('your-txid-here')
API
Table of Contents
hashwrap
Returns an SPV envelope given the TXID of the target transaction.
Parameters
txid
String The confirmed or unconformed TXID for which you would like to generate an SPV envelope. Just make sure the transaction is known to WhatsOnChain and the TAAL mAPI server.
Returns Object The SPV envelope associated with the TXID you provided.
License
The license for the code in this repository is the Open BSV License.