Post
Topic
Board Anfänger und Hilfe
Re: Bitcoins auf Bitcoin Wallet Adresse senden
by
Ricke
on 15/01/2015, 18:27:53 UTC
Diese Zeilen Code kommen im Script nur vor, wenn du blockchain.info mit der Library nutzt:
Code:
//...
$response $Blockchain->Wallet->send($btcAddress$amount);
//...
?>


Diese Zeilen werden so nur verwendet, wenn du blockchain.info ohne der Library nutzt:
Code:
//...
                                
$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;
//...
?>



Quote
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
Du hast weitere 3 Fehler gemacht:
1. Du hast vergessen, im Script deine Zugangsdaten einzutragen.
2. Bitcoin-Adressen fangen nicht mit "2CJv..." an.
3. Du versuchst 8E-11, in Dezimalschreibweise 0,00000000008BTC zu senden, aber der Bitcoin lässt sich höchstens bis zu 8 Nachkommastellen teilen. 1E-8, in Dezimalschreibweise 0,00000001BTC sind technisches Minimum. Aus praktischen Gründen solltest du nicht versuchen, weniger als 0,0000546BTC zu senden (Dust-Limit).