0.1.5 • Published 5 years ago

tif v0.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

TIF

TRAVIS NPM

js-standard-style

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

Format

tx?[version=<int>][&locktime=<uint>][&anyonecanpay=1]
in?txId=<txid>&vout=<uint>[&script=<hex>][&sequence=<uint>][&prevtx=<hex>]
in?txId=<txid>&vout=<uint>&witness=<hex>&value=<satoshis>[&script=<hex>][&sequence=<uint>]
out?address=<address>[&value=<satoshis>]
out?script=<hex>[&value=<satoshis>]

Example

let tif = require('tif')

tif.encode({
  tx: {
    version: 2
  },
  outs: [
    {
      address: '1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH',
      value: 100000
    },
    {
      address: '1cMh228HTCiwS8ZsaakH8A8wze1JR5ZsP',
      value: 100000
    }
  ]
})

LICENSE MIT

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago