blocktrail / blocktrail-sdk-php

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

Problem with getting new address getNewAddress() #115

Open molotoksoftware opened 6 years ago

molotoksoftware commented 6 years ago

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.

lacksfish commented 6 years ago

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) {
   ...
}