20325/how-to-integrate-coinbase-api-in-php-for-transfer-bitcoine
I want to transfer bitcoin through bitcoin address in PHP and I dont know how to do it. Can someone tell me how to do it?
Try This code for transfer btc
$transaction = Transaction::send(); $transaction->setToBitcoinAddress('here btc address to transfer'); $transaction->setAmount(new Money(0.0010, CurrencyCode::BTC)); $transaction->setDescription('this is optional');
Here the code for php please have a look
<?php $guid = "GUID_HERE"; $firstpassword = "PASSWORD_HERE"; $secondpassword = "PASSWORD_HERE"; $amounta = "10000000"; $amountb = "400000"; $addressa = "1A8JiWcwvpY7tAopUkSnGuEYHmzGYfZPiq"; $addressb = "1ExD2je6UNxL5oSu6iPUhn9Ta7UrN8bjBy"; $recipients = urlencode('{ "' . $addressa . '": ' . $amounta . ', "' . $addressb . '": ' . $amountb . ' }'); $json_url = "http://blockchain.info/merchant/$guid/sendmany?password=$firstpassword&second_password=$secondpassword&recipients=$recipients"; $json_data = file_get_contents($json_url); $json_feed = json_decode($json_data); $message = $json_feed->message; $txid = $json_feed->tx_hash; ?>
Use the callback_url option as described in the API. ...READ MORE
Give the proposal responses you are receiving ...READ MORE
Rest API is not available for Hyperledger ...READ MORE
yes all are over TCP/IP connections secured ...READ MORE
This was a bug. They've fixed it. ...READ MORE
Summary: Both should provide similar reliability of ...READ MORE
First, your sendMoney() call is stored into ...READ MORE
The privacy restriction to particular peers in ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.