Answer the question
In order to leave comments, you need to log in
Why does not create an account in the Coinbase API?
Hello guys.
In general, there was a need to implement the API in my project, I basically set everything up, except for one thing: There is a need to create new addresses (wallets) in your account using the API.
The problem is this:
The function in this form does not want to work:
$account = new Account([
['name'] => 'HelloWorld'
]);
$client->createAccount($account);
$account = $client->getPrimaryAccount();
$client->createAccount($account);
print_r($account);
I get this:Coinbase\Wallet\Resource\Account Object
(
[name:Coinbase\Wallet\Resource\Account:private] => New Account Name
[primary:Coinbase\Wallet\Resource\Account:private] => 1
[type:Coinbase\Wallet\Resource\Account:private] => wallet
[currency:Coinbase\Wallet\Resource\Account:private] => BTC
[createdAt:Coinbase\Wallet\Resource\Account:private] => DateTime Object
(
[date] => 2016-01-23 17:49:29.000000
[timezone_type] => 2
[timezone] => Z
)
[updatedAt:Coinbase\Wallet\Resource\Account:private] => DateTime Object
(
[date] => 2016-02-24 18:18:39.000000
[timezone_type] => 2
[timezone] => Z
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question