Author

Topic: Possible error in the API docs? (Read 1011 times)

legendary
Activity: 2506
Merit: 1010
August 29, 2012, 11:21:30 AM
#4
I don't have permissions to edit the referenced pages, hopefully someone can when they have a moment.

I just checked, looks like Gavin fixed it in both articles.

[Update: By the way, it is a  wiki -- anyone can register and instantly has permission to make edits.]
full member
Activity: 154
Merit: 102
August 29, 2012, 02:44:00 AM
#3
It's just a typo in the page, the output of the client is correct:
Code:
$ ~/bitcoin/src/bitcoind --datadir=/tmp/bitcoin02/ help createrawtransaction
createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...}
Create a transaction spending given inputs
(array of objects containing transaction id and output number),
sending to given address(es).
Returns hex-encoded raw transaction.
Note that the transaction's inputs are not signed, and
it is not stored in the wallet or transmitted to the network.

Great that's what I figured.
I don't have permissions to edit the referenced pages, hopefully someone can when they have a moment.
staff
Activity: 4284
Merit: 8808
August 29, 2012, 02:14:19 AM
#2
It's just a typo in the page, the output of the client is correct:
Code:
$ ~/bitcoin/src/bitcoind --datadir=/tmp/bitcoin02/ help createrawtransaction
createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...}
Create a transaction spending given inputs
(array of objects containing transaction id and output number),
sending to given address(es).
Returns hex-encoded raw transaction.
Note that the transaction's inputs are not signed, and
it is not stored in the wallet or transmitted to the network.
full member
Activity: 154
Merit: 102
August 29, 2012, 01:35:26 AM
#1
Hi Everyone,

I'm attempting to use the new raw transactions API.
The parameters appear to be incorrectly specified and I think it's probably a typo but I wanted to check to be sure.

According to the docs...
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list
https://en.bitcoin.it/wiki/Raw_Transactions
Code:
createrawtransaction
[{"txid":txid,"vout":n],...] {address:amount,...}
The problem is that first parameter appears to terminate the array ] instead of the element } resulting in a JSON object that is not well formed.  Is this intentional, is it a typo or am I just being clueless and missing something here?

Thanks in advance for any information!

Jump to: