Follow @nxtchg

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ValerieJacobs

Pages: [1]
1
General / Re: The Simplest Bitcoin Wallet
« on: December 22, 2018, 03:06:09 pm »
Hi, I tested the sample code in BCC:

Quote
var tx = btc.new_tx();

tx.add_input ('01020304abcdef', 0, '76a9141d8f0476ea05d9459e004fd0ff10588dd3979e6788ac'); // txid, no, script
tx.add_output('13nwZVh9RsKuZGegVn5KWHM51dA98Mho5f', 1234); // address, amount

var keys = btc.get_keys('123'); // 123 = passphrase

var signed = tx.sign(keys);

console.log(signed);

Then, I got the signed transaction, but when I broadcast the transaction, I got this error message:

Pages: [1]