I tested / studied the rpc interface for the Bitcoind daemon and have successfully used the php library so far. I am trying to create a new unprocessed transaction, I have many examples over the Internet, but I do not know the parameters of the function from which should be obtained.
example:
$bitcoin = new Bitcoin('myuser','mypwd','127.0.0.1','8332');
$bitcoin->createrawtransaction(
array(
array(
"txid"=>"aed23bb3ec7e93d69450d7e5ea49d52fcfbef9d380108f2be8fe14ef705fcea5", /where this string comes from or how i have to generate it??
"vout"=>2
),
),
array(
"1GTDT3hYk4x4wzaa9k38pRsHy9SPJ7qPzT"=>0.006,
));
- where "txid" occurs or how it is expressed.
- where should the vout value be.
source
share