I'm trying to index the names and decimals of tokens in moonbeam, I think I should listen for a contract instantiation event to get that data. Which event and module should I listen for? Or is there any other straight forward way to get the data that i'm looking for?


1 Answer 1


You should probably listen to Evm.ContractDeployed events to track all contracts ever deployed. However, you'd then need to filter ERC20-like contracts among those, which is a non-trivial task to do (but one can try looking at the methods implemented by the contract to "duck-guess").

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.