@keyring/txo-plugin

0.2.1 • Public • Published

@keyring/txo-plugin

This plugin adds TXO conversion capabilities to the Keyring Transaction class. Using the plugin allows you to easily transform the raw transaction data into a JSON structured format to then use within Planaria for powerful queries and filters.

Usage

const BSV = require('@keyring/bsv');
const TXOPlugin = require('@keyring/txo-plugin');

const Transaction = BSV.Transaction;
Transaction.use(new TXOPlugin());

let tx = new Transaction([raw hex format as a string]);
let txo = tx.txo();
// Do something with the txo JSON data such as inserting into a mongodb for querying capabilities

Readme

Keywords

none

Package Sidebar

Install

npm i @keyring/txo-plugin

Weekly Downloads

11

Version

0.2.1

License

MIT

Unpacked Size

5.4 kB

Total Files

5

Last publish

Collaborators

  • ford152
  • hexorx
  • justin16