Post
Topic
Board Anfänger und Hilfe
Re: Bitcoins auf Bitcoin Wallet Adresse senden
by
brouwer
on 14/01/2015, 18:22:13 UTC
Eingebunden hatte ich die API mit $Blockchain = new Blockchain();
Und ja du hattest Recht, ich hab auch bei der Angabe immer an eine E-Mail gedacht..

Hab das mal ausgebessert
Code:
$response = $Blockchain->Wallet->send($btcAddress, $amount);
                                $json_url = "https://blockchain.info/de/merchant/$guid/payment?password=$main_password&second_password=$second_password&to=$btcAddress&amount=$amount";
                                $json_data = file_get_contents($json_url); var_dump($json_data);
                                $json_feed = json_decode($json_data);
                                $message = $json_feed->message;
                                $txid = $json_feed->tx_hash;

und bekomme diesen Output:
Code:
Fatal error: Uncaught exception 'Blockchain_CredentialsError' with message 'Please enter wallet credentials.' in /Applications/XAMPP/xamppfiles/htdocs/lib/Blockchain/Wallet.php:22 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/lib/Blockchain/Wallet.php(40): Wallet->_checkCredentials() #1 /Applications/XAMPP/xamppfiles/htdocs/lib/Blockchain/Wallet.php(118): Wallet->call('payment', Array) #2 /Applications/XAMPP/xamppfiles/htdocs/index.php(244): Wallet->send('2CJvYeF1rguDqES...', 8E-11) #3 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/lib/Blockchain/Wallet.php on line 22