Hi,
I've been playing with the rpc interface, and using the php library successfully up until now. I'm trying to create a raw transaction.
The satoshi client debug console 'help' describes the command:
createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...}
But I'm not clear on how that should translate here. So, for example, the following command (without the carriage returns) works fine in my satoshi client debug console:
createrawtransaction [{\"txid\":\"aed23bb3ec7e93d69450d7e5ea49d52fcfbef9d380108f2be8fe14ef705fcea5\",
\"vout\":2},
{\"txid\":\"b28c740c66726ab2f0397be29f2d25f091b8ab353b98b9ebf9e6ccfd080cdf49\",
\"vout\":3}]
{\"1GTDT3hYk4x4wzaa9k38pRsHy9SPJ7qPzT\":0.006,
\"1ApD64wpNUM6GBeSmKYhsyaNwFot3FMC5y\":0.004}
It generates a raw transaction without problem.
My question is how to pass these parameters via the jsonRPCClient interface.
$bitcoin = new jsonRPCClient('http://user:
[email protected]:8332/');
echo $bitcoin->createrawtransaction( ??? );
Thanks in advance.