coinbase / coinbase-java

Coinbase API v1 library for Java
Apache License 2.0
149 stars 98 forks source link

Exception: Multiple accounts not supported #46

Open PriyanshDwivedi opened 6 years ago

PriyanshDwivedi commented 6 years ago

I created an individual account and generated an API key with all v1 permissions. Then, I installed the coinbase java maven library and used the below code to create a new account but got exception. Below is the code to create new account

Coinbase cb = new CoinbaseBuilder().withApiKey(Bit7PayConstants.COINBASE_KEY,Bit7PayConstants.COINBASE_SECRET).build();
Account acc = new Account();
acc.setName(account_id);
Account a = cb.createAccount(acc);

Exception com.coinbase.api.exception.CoinbaseException: Multiple accounts not supported

Need to know how to create multiple accounts for all my wallet app users and if there is any limit on the number of accounts I can create.