Hello all,
I am running into a weird problem with List Accounts that I am hoping to track down.
-
Note that the authorizing user can select a wallet, and one of the options is BTC:
-
Next, select a non-BTC wallet. In this case, I select BSV:
-
Getting the access token from authorized user, I run:
curl https://api.coinbase.com/v2/accounts -H "CB-VERSION: 2022-05-22" -H "Authorization: Bearer <access_token>"
This is where it gets weird. Note the results:
{
"pagination": {
"ending_before": null,
"starting_after": null,
"previous_ending_before": null,
"next_starting_after": null,
**"limit": 203,**
"order": "desc",
"previous_uri": null,
"next_uri": null
},
"data": [{
"id": "**ETC**",
"name": "ETC Wallet",
"primary": true,
"type": "wallet",
"currency": {
"code": "ETC",
"name": "Ethereum Classic",
"color": "#59D4AF",
"sort_index": 103,
"exponent": 8,
"type": "crypto",
"address_regex": "^(?:0x)?[0-9a-fA-F]{40}$",
"asset_id": "c16df856-0345-5358-8a70-2a78c804e61f",
"slug": "ethereum-classic"
},
"balance": {
"amount": "0.00000000",
"currency": "ETC"
},
"created_at": null,
"updated_at": null,
"resource": "account",
"resource_path": "/v2/accounts/ETC",
"allow_deposits": true,
"allow_withdrawals": true
}, {
...
-
Note that there are 203 returned records. This means all the records for the account, correct? And since there is no paging information, the returned result set is supposed to be 203 records? When counting all items, it seems that only 201 records are returned.
-
Note further that ETC is the first account returned when according to this answer, it should be BSV since it was the selected wallet in the authorization screen, correct?
-
As mentioned, there are actually only 201 items in the data in the result set. The BTC wallet shown earlier (and ETH) wallets are not listed/found in the results. In fact, none of the listed options of authorized wallet access are returned.
Any clarification/assistance that anyone can lend towards addressing these points of confusion would be greatly appreciated.