bitcore
bitcore copied to clipboard
[BCN] The wallet balance by time endpoint doesn't work for EVM chains
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