How can I send BTC to another Address
Closed this issue · 4 comments
Sorry for my ignorance but how can I send bitcoins to another address?
I'm trying
$send = $BTC->request('sendtoaddress', '*************************************************** 0.06');
Any example or not is possible?
Thanks ;D and good job.
Hi!
Thank you for your feedback!
Arguments for Bitcoin Core must be passed as array if you're using request() method with multiple arguments.
For example:
$result = $BTC->request('sendtoaddress', ['mmXgiR6KAhZCyQ8ndr2BCfEq1wNG2UnyG6', 0.06]);
$txid = $result->get(); // to get txid if using branch 2.*
Note the square brackets on arguments.
You can also use magic method to perform the same request:
$result = $BTC->sendToAddress('mmXgiR6KAhZCyQ8ndr2BCfEq1wNG2UnyG6', 0.06);
I'll try to improve README with more examples later.
@denpamusic Thanks for help me ;D, You can add for Donate BTC Address ? I would like to donate you BTC
Glad I could help you :)
Don't hesitate to ask if you have any more problems or questions.
If you like to donate, you can donate BTC to 13gkVWc3sdzpmCLkGkXXfPBwnh6ZXct947
I also added this donation address as well as sendToAddress example to README.
@denpamusic BTC sended in aprox 1hour thanks for your work men