php – bitcoind守护进程和createrawtransaction参数
发布时间:2020-12-13 16:53:02 所属栏目:PHP教程 来源:网络整理
导读:我一直在测试/学习Bitcoind守护进程的rpc接口,并成功使用php库到现在为止. ?我正在尝试创建一个新的原始事务,我在互联网上有很多例子,但我不知道函数的params应该来自哪里. 例如: $bitcoin = new Bitcoin('myuser','mypwd','127.0.0.1','8332'); $bitcoin-c
我一直在测试/学习Bitcoind守护进程的rpc接口,并成功使用php库到现在为止.
?我正在尝试创建一个新的原始事务,我在互联网上有很多例子,但我不知道函数的params应该来自哪里. 例如: $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 )); >“txid”来自哪里,或者它是如何生成的 解决方法
看看
this description.这很棒.
(非常)短版: >每个事务的输入都是旧事务的输出. 您可以在这里查看一些实际交易:https://blockchain.info/ (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |