{"name":"ethereumjs-tx","version":"2.0.0","description":"An simple module for creating, manipulating and signing ethereum transactions","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"ethereumjs-config-build","prepublishOnly":"npm run test && npm run build","coverage":"ethereumjs-config-coverage","coveralls":"ethereumjs-config-coveralls","docs:build":"typedoc --out docs --mode file --readme none --theme markdown --mdEngine github --excludeNotExported src","format":"ethereumjs-config-format","format:fix":"ethereumjs-config-format-fix","tslint":"ethereumjs-config-tslint","tslint:fix":"ethereumjs-config-tslint-fix","tsc":"ethereumjs-config-tsc","lint":"ethereumjs-config-lint","lint:fix":"ethereumjs-config-lint-fix","test":"npm run test:node","test:node":"ts-node node_modules/tape/bin/tape ./test/index.ts","test:browser:build":"tsc && cp ./test/*.json test-build/test/","test:browser":"npm run test:browser:build && karma start karma.conf.js"},"husky":{"hooks":{"pre-push":"npm run lint"}},"keywords":["ethereum","transactions"],"author":{"name":"mjbecze","email":"mb@ethdev.com"},"license":"MPL-2.0","dependencies":{"ethereumjs-common":"^1.0.0","ethereumjs-util":"^6.0.0"},"devDependencies":{"@ethereumjs/config-nyc":"^1.1.1","@ethereumjs/config-prettier":"^1.1.1","@ethereumjs/config-tsc":"^1.1.1","@ethereumjs/config-tslint":"^1.1.1","@types/bn.js":"^4.11.5","@types/minimist":"^1.2.0","@types/node":"^11.13.4","@types/tape":"^4.2.33","browserify":"^16.2.3","contributor":"^0.1.25","coveralls":"^2.11.4","ethereumjs-testing":"git+https://github.com/ethereumjs/ethereumjs-testing.git#v1.2.8","husky":"^2.1.0","istanbul":"^0.4.1","karma":"^4.1.0","karma-browserify":"^6.0.0","karma-detect-browsers":"^2.3.3","karma-firefox-launcher":"^1.1.0","karma-tap":"^4.1.4","minimist":"^1.2.0","nyc":"^14.0.0","prettier":"^1.17.0","tape":"^4.0.3","ts-node":"^8.0.3","tslint":"^5.15.0","typedoc":"^0.14.2","typedoc-plugin-markdown":"^1.2.0","typescript":"^3.4.3","typestrict":"^1.0.2"},"repository":{"type":"git","url":"git+https://github.com/ethereumjs/ethereumjs-tx.git"},"bugs":{"url":"https://github.com/ethereumjs/ethereumjs-tx/issues"},"homepage":"https://github.com/ethereumjs/ethereumjs-tx","contributors":[{"email":"-c-g-","url":"https://github.com/cgewecke"},{"name":"Kirill Fomichev","email":"fanatid@ya.ru","url":"https://github.com/fanatid"},{"name":"Rick Behl","url":"https://github.com/Nexus7"},{"name":"Tim Coulter","email":"tim@timothyjcoulter.com","url":"https://github.com/tcoulter"},{"name":"kumavis","email":"aaron@kumavis.me","url":"https://github.com/kumavis"},{"name":"Jack Peterson","email":"jack@tinybike.net","url":"https://github.com/tinybike"},{"name":"Nick Dodson","url":"https://github.com/SilentCicero"},{"url":"https://github.com/ckeenan"},{"name":"Alex Beregszaszi","email":"alex@rtfs.hu","url":"https://github.com/axic"},{"url":"https://github.com/wanderer"},{"url":"https://github.com/kvhnuke"}],"gitHead":"f0234abc9e03f4c44518e2157b40b54dc2da5cb3","_id":"ethereumjs-tx@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.15.1","_npmUser":{"name":"holgerd77","email":"Holger.Drewes@gmail.com"},"dist":{"integrity":"sha512-/rMI2kPDQxGGPJNY9wBpX+3iloFzb5drVuR85nJ00+P9/O2sUVUBmIJX+GR/PGyaglrW+hqJGqsvdwVQUAYK8A==","shasum":"5f793064e50a45f8ca36ac6a145890ba0fc7986c","tarball":"http://registry-npm.ywwl.com/ethereumjs-tx/download/ethereumjs-tx-2.0.0.tgz","fileCount":16,"unpackedSize":63345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+h5NCRA9TVsSAnZWagAAlW4P/3aAieE6LgXuupGw2L8Z\nr07AOwsS3ubnTGAhC/B9uO4//omx1+54jakyCJOmPwztfJUL/95cnFTsyB8j\nXCrJXk+UUV/cR1VzjXbNn92dd4Y4h6JoqFjuXy2/9HYwjsUYcsSd+vkOA1y8\n2z/MfHjQVFNkGGw/iL1KZO98BvW8ALsGYijlUG+notOqTisDlTnMUcWNI25b\nXMFjofuXT4Rk3nMv3deeilioS6NVvTpo7RLao1bfmf3BPFu7eR7lRkPuQDFU\nN11Ep9PEGR/RtOCCkeFWNcV7/YlmaO9bWQNZlPoVzi5ezKLG1i3vEPrJHkaV\nA3hGwxSNh5MGESS54A+v3e69hqQi5F5MzL2bC710JYYo1bpsJ85C28tix5W6\na5NVbaepSsM/11yJUxlZjGuFSq58ExQKBZZ+uCyk9aYVOLcwLEZtRzVlYwMT\nAdeoKDHV959nPKJSrycEpfoZqUFwRVJcY3XuCRtjVUZjAWZn2DpgjizCXX5k\nhYwau/W4qZTgq+ALfv64WnH1Dp+aBbliO0sKf4kaDX0pAFj5A0+2wItNBmmc\njwIRd+wPUktnYyR90K+2+KB2TR9kcTT/3LPnGQcO/X4x6JnL+0+ppgzxVWPS\nUSMUFOQ9UFDT07/bh1XQYSjyLqK/yRfPXjMzG2NNfyqxydUFm2LD7m9iQpKV\nN+H6\r\n=yNbQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID5jL3g6WQPJasNFK11JI7WdnXS7OGrRiUhHjjGw8UE4AiAfB+i3SmC0tJrGgfIYnbWfVq6kingUst4hFCdd5Qcifg=="}],"size":17463,"noattachment":false,"key":"/ethereumjs-tx/-/ethereumjs-tx-2.0.0.tgz"},"maintainers":[{"email":"alex@rtfs.hu","name":"axic"},{"email":"Holger.Drewes@gmail.com","name":"holgerd77"},{"email":"aaron@kumavis.me","name":"kumavis"},{"email":"null_radix@riseup.net","name":"null_radix"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ethereumjs-tx_2.0.0_1559895629070_0.4999696618181737"},"_hasShrinkwrap":false,"deprecated":"New package name format for new versions: @ethereumjs/tx. Please update.","readme":"# SYNOPSIS\n\n[![NPM Package](https://img.shields.io/npm/v/ethereumjs-tx.svg?style=flat-square)](https://www.npmjs.org/package/ethereumjs-tx)\n[![Actions Status](https://github.com/ethereumjs/ethereumjs-tx/workflows/tx-test/badge.svg)](https://github.com/ethereumjs/ethereumjs-tx/actions)\n[![Coverage Status](https://img.shields.io/coveralls/ethereumjs/ethereumjs-tx.svg?style=flat-square)](https://coveralls.io/r/ethereumjs/ethereumjs-tx)\n[![Gitter](https://img.shields.io/gitter/room/ethereum/ethereumjs-lib.svg?style=flat-square)](https://gitter.im/ethereum/ethereumjs-lib) or #ethereumjs on freenode\n\n# INSTALL\n\n`npm install ethereumjs-tx`\n\n# USAGE\n\n- [example](https://github.com/ethereumjs/ethereumjs-tx/blob/master/examples/transactions.ts)\n\n```javascript\nconst EthereumTx = require('ethereumjs-tx').Transaction\nconst privateKey = Buffer.from(\n  'e331b6d69882b4cb4ea581d88e0b604039a3de5967688d3dcffdd2270c0fd109',\n  'hex',\n)\n\nconst txParams = {\n  nonce: '0x00',\n  gasPrice: '0x09184e72a000',\n  gasLimit: '0x2710',\n  to: '0x0000000000000000000000000000000000000000',\n  value: '0x00',\n  data: '0x7f7465737432000000000000000000000000000000000000000000000000000000600057',\n}\n\n// The second parameter is not necessary if these values are used\nconst tx = new EthereumTx(txParams, { chain: 'mainnet', hardfork: 'petersburg' })\ntx.sign(privateKey)\nconst serializedTx = tx.serialize()\n```\n\n# Chain and Hardfork Support\n\nThe `Transaction` and `FakeTransaction` constructors receives a second parameter that lets you specify the chain and hardfork\nto be used. By default, `mainnet` and `petersburg` will be used.\n\nThere are two ways of customizing these. The first one, as shown in the previous section, is by\nusing an object with `chain` and `hardfork` names. You can see en example of this in [./examples/ropsten-tx.ts](./examples/ropsten-tx.ts).\n\nThe second option is by passing the option `common` set to an instance of [ethereumjs-common](https://github.com/ethereumjs/ethereumjs-common)' Common. This is specially useful for custom networks or chains/hardforks not yet supported by `ethereumjs-common`. You can see en example of this in [./examples/custom-chain-tx.ts](./examples/custom-chain-tx.ts).\n\n## MuirGlacier Support\n\nThe `MuirGlacier` hardfork is supported by the library since the `v2.1.2` release.\n\n## Istanbul Support\n\nSupport for reduced non-zero call data gas prices from the `Istanbul` hardfork\n([EIP-2028](https://eips.ethereum.org/EIPS/eip-2028)) has been added to the library\nalong with the `v2.1.1` release.\n\n# EIP-155 support\n\n`EIP-155` replay protection is activated since the `spuriousDragon` hardfork. To disable it, set the\nhardfork in the `Transaction`'s constructor.\n\n# API\n\n[./docs/](./docs/README.md)\n\n# EthereumJS\n\nSee our organizational [documentation](https://ethereumjs.readthedocs.io) for an introduction to `EthereumJS` as well as information on current standards and best practices.\n\nIf you want to join for work or do improvements on the libraries have a look at our [contribution guidelines](https://ethereumjs.readthedocs.io/en/latest/contributing.html).\n\n# LICENSE\n\n[MPL-2.0](<https://tldrlegal.com/license/mozilla-public-license-2.0-(mpl-2)>)\n","publish_time":1559895629213,"_cnpm_publish_time":1559895629213,"dist-tags":{"latest":"2.1.2"}}