vaporyjs-tx

1.1.2 • Public • Published

SYNOPSIS

NPM Package Build Status Coverage Status Gitter or #vaporyjs on freenode

js-standard-style

INSTALL

npm install vaporyjs-tx

USAGE

var Tx = require('vaporyjs-tx')
var privateKey = new Buffer('e331b6d69882b4cb4ea581d88e0b604039a3de5967688d3dcffdd2270c0fd109', 'hex')

var rawTx = {
  nonce: '0x00',
  gasPrice: '0x09184e72a000', 
  gasLimit: '0x2710',
  to: '0x0000000000000000000000000000000000000000', 
  value: '0x00', 
  data: '0x7f7465737432000000000000000000000000000000000000000000000000000000600057'
}

var tx = new Tx(rawTx)
tx.sign(privateKey)

var serializedTx = tx.serialize()

Note: this package expects ECMAScript 6 (ES6) as a minimum environment. From browsers lacking ES6 support, please use a shim (like es6-shim) before including any of the builds from this repo.

BROWSER

For a browser build please see https://github.com/vaporyjs/browser-builds.

API

./docs/

LICENSE

MPL-2.0

/vaporyjs-tx/

    Package Sidebar

    Install

    npm i vaporyjs-tx

    Weekly Downloads

    11

    Version

    1.1.2

    License

    MPL-2.0

    Unpacked Size

    46.2 kB

    Total Files

    13

    Last publish

    Collaborators

    • marlonhanks