Ich habe lokalen Service wie hier beschrieben https://github.com/blockchain/service-my-wallet-v3 installiert und es erfolgreich gestartet. Aber wenn Ich bin versucht, Balance meines Brieftasche zu bekommen:Blockchain API V1 Ausnahme "nicht gefunden"
$Blockchain = new \Blockchain\Blockchain();
$Blockchain->setServiceUrl("http://localhost:3000");
$Blockchain->Wallet->credentials('myid', 'mypass');
$stats = $Blockchain->Stats->get();
var_dump($stats);
$balance = $Blockchain->Wallet->getBalance();
var_dump($balance);
Ich habe Nachricht folgende Ausnahme:
Fatal error: Uncaught exception 'Blockchain\Exception\ApiError' with message 'No
t found' in C:\xampp\htdocs\test\Blockchain\Blockchain.php:114
Stack trace:
#0 C:\xampp\htdocs\test\Blockchain\Wallet\Wallet.php(47): Blockchain\Blockchain-
>post('merchant/16d72a...', Array)
#1 C:\xampp\htdocs\test\Blockchain\Wallet\Wallet.php(55): Blockchain\Wallet\Wall
et->call('balance')
#2 C:\xampp\htdocs\test\wallet.php(26): Blockchain\Wallet\Wallet->getBalance()
#3 {main}
thrown in C:\xampp\htdocs\test\Blockchain\Blockchain.php on line 114
Was verursacht dieses Problem und wie es zu lösen? Vielen Dank!
Dank für die Antwort! Ich benutze die Blockchain-Bibliothek https://github.com/blockchain/api-v1-client-php. Sieht gut aus, weil alle notwendigen Methoden schon geschrieben sind. Es funktioniert jedoch jetzt korrekt, wie Sie aus meiner Frage sehen können. –
Interessant, ich habe das vorher nicht gesehen. Vielleicht kontaktieren Sie die Blockchain-Unterstützung, Ihnen fehlt wahrscheinlich eine Erweiterung, die ihre Bibliothek benötigt. Sie könnten immer auch ohne die Bibliothek gehen, da es nur ein Dutzend möglicher Anrufe gibt, die Sie machen können. – m1xolyd1an
Ja, ich habe sie kontaktiert, aber sieht aus wie sie github Community so aktiv ist. –