You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The API returns an unkeyed value for the actual data requested, one of which is the array that usually comes with a key like "data" or something. Because of the lack of this key, it's slightly more difficult to get the results needed.
Using topholders endpoint
Here's a workaround for anyone it helps
let resLen = Object.keys(response).length;
response = response[Object.keys(response)[--resLen]];
It would help to have this key, though adding it now may break everyone's code.
The text was updated successfully, but these errors were encountered:
The API returns an unkeyed value for the actual data requested, one of which is the array that usually comes with a key like "data" or something. Because of the lack of this key, it's slightly more difficult to get the results needed.
Using
topholders
endpointHere's a workaround for anyone it helps
It would help to have this key, though adding it now may break everyone's code.
The text was updated successfully, but these errors were encountered: