脚本宝典收集整理的这篇文章主要介绍了php – bitcoind守护进程和createrawtransaction参数,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
例如:
$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是您收到的交易的交易ID(至少包含您要花费的价值). vout是原始txid中地址的索引.
您可以在这里查看一些实际交易:https://blockchain.info/
以上是脚本宝典为你收集整理的php – bitcoind守护进程和createrawtransaction参数全部内容,希望文章能够帮你解决php – bitcoind守护进程和createrawtransaction参数所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。