blocktrail-sdk-php icon indicating copy to clipboard operation
blocktrail-sdk-php copied to clipboard

Problem with getting new address getNewAddress()

Open molotoksoftware opened this issue 7 years ago • 1 comments

Hello friends

$address = $wallet->getNewAddress();

Blocktrail\SDK\Connection\Exceptions\ObjectNotFound: The object you've tried to access does not exist. in /vendor/blocktrail/blocktrail-sdk/src/Connection/BaseRestClient.php:253

Thanks.

molotoksoftware avatar Apr 17 '18 13:04 molotoksoftware

It is a bit difficult to evaluate the error from just one line of code, are you initializing the $wallet object similar to this?

try {
    $wallet = $client->initWallet([
        "identifier" => "example-wallet",
        "passphrase" => "example-strong-password"
    ]);
} catch (ObjectNotFound $e) {
   ...
}

lacksfish avatar May 07 '18 09:05 lacksfish