I installed and used ethereumjs-tx, as explained here.
I ran the following commands:
var Tx = require('ethereumjs-tx')
var privateKey = new Buffer('xxxxxxxxx', '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()
Now, how do I broadcast this transaction to the testnet?
If relevant, I have a geth node running and synced, with an etherbase. Do I need to somehow use geth to send this transaction, or can I send it just with ethereumjs libraries, and (in either way) how can I do it?
Thanks for any help,