blocktrail / blocktrail-sdk-php

BlockTrail's Developer Friendly PHP SDK for the BlockTrail API
MIT License
44 stars 49 forks source link

Get address balance no longer working on SDK V1 #124

Open miranos opened 6 years ago

miranos commented 6 years ago

Hi,

I was using this function well last year, but now i receive the message as INVALID CREDENTIAL:

use \Blocktrail\SDK\Connection\Exceptions\InvalidCredentials;

try {
    $client->address('1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T');
} catch (\Exception $e) {
    if ($e instanceof InvalidCredentials) {
        var_dump((string)$e);
    }
}
Notice than generating new address work well !
afk11 commented 5 years ago

What version of the SDK are you using? Something might have changed on the data API, would help narrow down the issue.