{"_id":"@alayanetwork/ethereumjs-tx","_rev":"1-7b672d6216dd99dc22118abec8871158","name":"@alayanetwork/ethereumjs-tx","dist-tags":{"latest":"1.3.7"},"versions":{"1.3.7":{"name":"@alayanetwork/ethereumjs-tx","version":"1.3.7","description":"An simple module for creating, manipulating and signing platon transactions","main":"es5/index.js","scripts":{"coverage":"istanbul cover ./test/index.js","coveralls":"npm run coverage && coveralls <coverage/lcov.info","lint":"standard","test":"npm run test:node && npm run test:browser","test:browser":"karma start karma.conf.js","test:node":"tape ./test/index.js","build:es5":"babel index.js --source-root ./ -d ./es5","build:docs":"documentation --github  -f md ./index.js > ./docs/index.md && contributor"},"keywords":["platon","transactions"],"author":{"name":"mjbecze","email":"mb@ethdev.com"},"license":"MPL-2.0","dependencies":{"ethereum-common":"^0.0.18","@alayanetwork/ethereumjs-util":"^5.2.0"},"devDependencies":{"async":"^2.0.0","babel-cli":"^6.22.2","babel-preset-env":"^1.6.1","babel-preset-stage-0":"^6.16.0","babelify":"^7.3.0","browserify":"^13.0.0","contributor":"^0.1.25","coveralls":"^2.11.4","documentation":"^3.0.4","ethereumjs-testing":"0.0.1","istanbul":"^0.4.1","karma":"^1.1.1","karma-browserify":"^5.1.0","karma-detect-browsers":"^2.0.2","karma-env-preprocessor":"^0.1.1","karma-firefox-launcher":"^1.0.0","karma-tap":"^2.0.1","minimist":"^1.2.0","standard":"^7.1.2","tape":"^4.0.3"},"repository":{"type":"git","url":"git+https://github.com/AlayaNetwork/samurai-ethereumjs-tx.git"},"bugs":{"url":"https://github.com/AlayaNetwork/samurai-ethereumjs-tx/issues"},"homepage":"https://github.com/AlayaNetwork/samurai-ethereumjs-tx","standard":{"ignore":["es5/**","dist/**","package-init.js","package.js"]},"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":"e73a6fa59a474895c0bbec2334c4d9bfd6d76373","_id":"@alayanetwork/ethereumjs-tx@1.3.7","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-02jlqWdBME60e7kas/Ce8Lzxvq0qey8ibDaIw8V3TiaVgxADJ9Al7/NYyxZ0GtsQgyGZEUNm88UDhRFDO+JHlQ==","shasum":"f17cb3ae3a04da8430ab5a6b1fbab0334f8e68e8","tarball":"https://registry.npmjs.org/@alayanetwork/ethereumjs-tx/-/ethereumjs-tx-1.3.7.tgz","fileCount":10,"unpackedSize":56457,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfooriCRA9TVsSAnZWagAAdhgP/2K4fGpxEizBv54Lkc8P\nkiThezI/ep3UHMais/9g0TfeA9qL9pylLBaZV6asCH1TJ1vGFWkKEP8oJwER\npiZlxV/xxxiV1HFVoEIjG1ji1jrR4vMnMXS9j+kvE+qEf1C3xSzik3RDfbPY\nkKkHOIDEnZdRDSFq9IyECOvJQxat6dN+2cYzipcKwo2M1gqz0Aj9/odXS8Fa\nPkwPI6v6UDUMa+rWLwXYUsPd3Gac2fjVhEi8a5/VIJ/CxIRffA7CPjczXnVc\nw6MUfDwpJoe0j7chMBsHwlq118PfDsL2VcNz9rOomPgPa33n1f2bw7+udzOS\n84MjCfPrDa0sXPn19/35puLO+3KkUyZ2XqTWnOS+UfwXGoxSyuc0r+KnPkBK\nxN0H31HFrLjJjuA5qCG66F9xg+YrDX9ExIS9iOamaUrQQ5gbF7nQkpyobpiO\nzMhKED0/1Cv0wiqrAwxSyoBASY81R1K01fRWMt2zbfVXxEaBjsWONihwm+sH\nA9+3KPL9kgs2TRLDPOK+VvYWYkv/xnd2zf8YVxY31YJMcUiVh0TpE/4px3Lk\n8wRj1rCB0EyCMseZJSzXMkHLAWEqHJsafP1EWvipHTenlVrO87VyNNqLsCeZ\nQiDGp0FK2am+xGR6dVVsc4nbJjP2PEv+Rk3t3NhZbFvjytSsFLVI6g4WuVku\nw/DK\r\n=ctHg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCC05cybi3xX/k2dKP1RDFljztiNRbPJHRP91EXWahlWAIhAINpQReO8axgf3qt/2cgwxHKeZ9XbyNSwNO9ND6hnKJn"}]},"_npmUser":{"name":"alayanetwork","email":"npm@latticex.foundation"},"directories":{},"maintainers":[{"name":"alayanetwork","email":"npm@latticex.foundation"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ethereumjs-tx_1.3.7_1604487905270_0.013930640182942877"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-04T11:05:05.219Z","1.3.7":"2020-11-04T11:05:05.400Z","modified":"2022-04-04T12:33:53.605Z"},"maintainers":[{"name":"alayanetwork","email":"npm@latticex.foundation"}],"description":"An simple module for creating, manipulating and signing platon transactions","homepage":"https://github.com/AlayaNetwork/samurai-ethereumjs-tx","keywords":["platon","transactions"],"repository":{"type":"git","url":"git+https://github.com/AlayaNetwork/samurai-ethereumjs-tx.git"},"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"}],"author":{"name":"mjbecze","email":"mb@ethdev.com"},"bugs":{"url":"https://github.com/AlayaNetwork/samurai-ethereumjs-tx/issues"},"license":"MPL-2.0","readme":"# SYNOPSIS \n[![NPM Package](https://img.shields.io/npm/v/ethereumjs-tx.svg?style=flat-square)](https://www.npmjs.org/package/ethereumjs-tx)\n[![Build Status](https://travis-ci.org/ethereumjs/ethereumjs-tx.svg?branch=master)](https://travis-ci.org/ethereumjs/ethereumjs-tx)\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[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)  \n\n# INSTALL\n`npm install ethereumjs-tx`\n\n# USAGE\n\n  - [example](https://github.com/ethereumjs/ethereumjs-tx/blob/master/examples/transactions.js)\n\n```javascript\nconst EthereumTx = require('@alayanetwork/ethereumjs-tx')\nconst privateKey = Buffer.from('e331b6d69882b4cb4ea581d88e0b604039a3de5967688d3dcffdd2270c0fd109', 'hex')\n\nconst txParams = {\n  nonce: '0x00',\n  gasPrice: '0x09184e72a000', \n  gasLimit: '0x2710',\n  to: '0x0000000000000000000000000000000000000000', \n  value: '0x00', \n  data: '0x7f7465737432000000000000000000000000000000000000000000000000000000600057',\n  // EIP 155 chainId - mainnet: 1, ropsten: 3\n  chainId: 3\n}\n\nconst tx = new EthereumTx(txParams)\ntx.sign(privateKey)\nconst serializedTx = tx.serialize()\n```\n\n**Note:** this package expects ECMAScript 6 (ES6) as a minimum environment. From browsers lacking ES6 support, please use a shim (like [es6-shim](https://github.com/paulmillr/es6-shim)) before including any of the builds from this repo.\n\n\n# BROWSER  \nFor a browser build please see https://github.com/ethereumjs/browser-builds.\n\n# API\n[./docs/](./docs/index.md)\n\n# LICENSE\n[MPL-2.0](https://tldrlegal.com/license/mozilla-public-license-2.0-(mpl-2))\n","readmeFilename":"README.md"}