到目前为止,我一直在测试/学习Bitcoind守护进程的rpc接口,并成功地使用了php库。我试图创建一个新的原始交易,我有很多例子在互联网上,但我不知道函数的对立面应该是从哪里来的。
例子:
$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
    ));发布于 2014-04-03 13:10:43
看看this description。太棒了。
(非常)短版本:
txid是您收到的事务的事务ID (至少包含要花费的值)。vout是原始txid中地址的索引。您可以在这里查看一些实际事务:https://blockchain.info/
https://stackoverflow.com/questions/22837830
复制相似问题