bitcore icon indicating copy to clipboard operation
bitcore copied to clipboard

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

Open kajoseph opened this issue 1 year ago • 0 comments

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 avatar Oct 04 '24 20:10 kajoseph