Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BCN] The wallet balance by time endpoint doesn't work for EVM chains #3805

Open
kajoseph opened this issue Oct 4, 2024 · 0 comments
Open

Comments

@kajoseph
Copy link
Collaborator

kajoseph commented Oct 4, 2024

The /:pubKey/balance/:time endpoint in bitcore-node only calls down to the Coins collection which isn't used by EVM chains, thus getting EVM balances by time has never been implemented and has always returned 0.

With adding Moralis provider support, we have a relatively easy source for getting these balances.

TASK:
Implement Moralis' endpoints for both native & ERC20 time balances:
https://docs.moralis.com/web3-data-api/evm/reference/get-native-balance
https://docs.moralis.com/web3-data-api/evm/reference/wallet-api/get-token-balances-by-wallet

@kajoseph kajoseph changed the title The wallet balance by time endpoint doesn't work for EVM chains [BCN] The wallet balance by time endpoint doesn't work for EVM chains Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant