Skip to content

Instantly share code, notes, and snippets.

@mingoes
mingoes / sendRawTransaction.js
Created February 20, 2018 21:10 — forked from raineorshine/sendRawTransaction.js
Sends a raw transaction with web3 v1.0 and Infura
const Web3 = require('web3')
const Tx = require('ethereumjs-tx')
// connect to Infura node
const web3 = new Web3(new Web3.providers.HttpProvider('https://mainnet.infura.io/INFURA_KEY'))
// the address that will send the test transaction
const addressFrom = '0x1889EF49cDBaad420EB4D6f04066CA4093088Bbd'
const privKey = 'PRIVATE_KEY'
### Keybase proof
I hereby claim:
* I am mingoes on github.
* I am mingoes (https://keybase.io/mingoes) on keybase.
* I have a public key ASBcP13LSzuJX_JksCFyksSiPkSEzlxBrN_CbpSE1PfS3Ao
To claim this, I am signing this object: