A from_block query param does not work when getting erc-20 token transactions

Hello,

I have started using Moralis API for getting crypto currency and crypto token transactions for a given wallet address and noticed that from_block query param is ignored / not working when getting a list of ERC-20 token transactions. This is kind of a breaking issue (e.g. in terms of consistency and performance) as now it is impossible to filter transactions by block number.

Endpoint: GET …/erc20/transfers

Any guidance would be highly appreciated.

you mean this endpoint: GET /{address}/erc20/transfers?
can you give an example where it doesn’t work?

Sure, this is the request with from_block query param:

'https://deep-index.moralis.io/api/v2/0xB695E8AAA902eCe3FFAf1cAff652168A6eF0ce8D/erc20/transfers?chain=eth&from_block=12821488'
1 Like

this seems to work as a work around for now (mainly to also add to_block):
https://deep-index.moralis.io/api/v2/0xB695E8AAA902eCe3FFAf1cAff652168A6eF0ce8D/erc20/transfers?chain=eth&from_block=12821488&to_block=12891488

Thanks for the suggestion, I will make a workaround to pass to_block which is latest bock on the blockchain.