bitcoinjs/tif

Name: tif

Owner: BitcoinJS

Description: Bitcoin Transaction Interchange Format (TIF) decoding/encoding module

Created: 2016-10-27 07:25:05.0

Updated: 2018-01-17 04:36:09.0

Pushed: 2017-09-18 03:35:43.0

Homepage: null

Size: 14

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

TIF

TRAVIS NPM

js-standard-style

Bitcoin Transaction Interchange Format (TIF) decoding/encoding module.

Format
version=<int>][&locktime=<uint>][&anyonecanpay=1]
xId=<txid>&vout=<uint>[&script=<hex>][&sequence=<uint>][&prevtx=<hex>]
xId=<txid>&vout=<uint>&witness=<hex>&value=<satoshis>[&script=<hex>][&sequence=<uint>]
address=<address>[&value=<satoshis>]
script=<hex>[&value=<satoshis>]
Example
tif = require('tif')

encode({
: {
version: 2

ts: [
{
  address: '1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH',
  value: 100000
},
{
  address: '1cMh228HTCiwS8ZsaakH8A8wze1JR5ZsP',
  value: 100000
}


LICENSE MIT

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.