MoralisWeb3 / docs

Official documentation of Moralis Web3
https://docs.moralis.io
28 stars 123 forks source link

Feature request for: /web3-data-api/evm/reference/wallet-api/get-wallet-token-balances-price #403

Closed vick2592 closed 4 months ago

vick2592 commented 5 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

When trying the API call I noticed there was one major problem in the request object. It is not request.raw, but request.result. This needs to be updated for the Node.js implementation so that users wont get confused when trying out this code and receving a function raw() object instead of an array for the addresses token result.

Describe the solution you'd like A clear and concise description of what you want to happen.

Simple solution would be to change response.raw to response.result. This way once user gets that call and console logs the data he will isntantly see the array response.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Other alternatives would be expanding the API call to be similar to how token.getWalletTokenBalances works. Where the response.raw is allready the result array.

Additional context Add any other context or screenshots about the feature request here.

github-actions[bot] commented 4 months ago

Stale issue message