Bitcoind daemon and transformation options

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 //what is this vout, in this case what means the number 2??
        ),
    ),
    array(
        "1GTDT3hYk4x4wzaa9k38pRsHy9SPJ7qPzT"=>0.006,//destination wallet address and required amount
    ));
  • where "txid" occurs or how it is expressed.
  • where should the vout value be.
+4
source share
1 answer

Check out this description . Fine.

(Very) Short version:

  • The input of each transaction is derived from the old transaction.
  • txid , ( , ). vout - txid.

: https://blockchain.info/

+3

Source: https://habr.com/ru/post/1534827/


All Articles