Search code examples
node.jsapicryptographybitcoincoinbase-api

Coinbase API BTC account missing


thanks for coming to my aid. In the course of using the coinbase API, when I call
client.getAccounts({}, function(error, accounts){
console.log('accounts', accounts) })
I notice a number of accounts including ethereum, litecoin, but no bitcoin (BTC) Can someone help figure out why ? Thanks so much!


Solution

  • For some reason bitcoin is not in the main account that comes back. you can use this call to get specific accounts.

    btcAccount = client.get_account('BTC')