What I'm doing wrong with "Sendmany"?

Anyody can help me?

What is wrong with this code?

<?php require("btc/easybitcoin.php"); $bitcoin = new Bitcoin("root", "000000", "127.0.0.1", "18332"); $account = "94TXxYwETg"; $arrayRec = array("tb1qkcy3ewl2f5l9a3u56xymanx3g7env222hyj9sr" => "0.0005", "tb1qm7vy755ww88r2mw8zcfwsmccjsc1ow4r488lh0" => "0.00005"); $send = $bitcoin->sendmany($account, $arrayRec, 0); print_r($send); ?> 

I can create addresses, sendfrom, check balance, etc, but I can't use this function "sendmany". Anybody knows what I'm doing wrong and how can I fix this?

PS: I'm using testnet.

Thanks in advance.

submitted by /u/krokrodrilro
[link] [comments]

from Bitcoin - The Currency of the Internet https://ift.tt/3l66wDD

No comments

Theme images by Jason Morrow. Powered by Blogger.