Make output of gettxout RPC more consistent
* Report "value" in BTC, rather than "amount" in satoshis
* Use ScriptPubKeyToJSON to report script data
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/4e68391a7f3b3361584af032bf671bd9dc0677fe for binaries and test log.
This is changing things in the wrong direction. BTC values should be changed to amounts.
The non-integers in the API needing special json handling does stink— wittness my complaints about the python module's inconsistent use of decimal... but that no reason to make the API inconsistent.
I am all for using satoshis expressed as an integer, or amounts encoded as strings in the RPC interface. But consistency is more important.
I hope we can one day do a nice "RPC v2" with consistent names, nicely separated calls for net/wallet/blockchain, with support for multiwallet and authentication, and amounts that don't rely on floats, though.