August 2018
Intermediate to advanced
404 pages
11h 19m
English
We will now learn how we can send raw transactions:
$ npm install ethereumjs-tx --save
// For web3.js 0.2x.xvar Tx = require("ethereumjs-tx");var rawTx = { nonce: "0x00", gasPrice: "0x09184e72a000", gasLimit: "0x2710", to: "0x0000000000000000000000000000000000000000", value: "0x00", data: "0x3f9263449875000000000000000000000000000000000000000000000000000000000009" }var tx = new Tx(rawTx);
Use the following ...