Latest Contracts

Which endpoint can i use to fetch the latest contracts deployed on ethereum? I seen an endpoint for aptos, but couldnt find one for ethereum

we don’t have an endpoint for that now

do you think its possible doing it through this endpoint to pull latest blocks

Moralis.EvmApi.block.getDateToBlock

Then use the const response = await Moralis.EvmApi.block.getDateToBlock({ to pull transaction hashes within them and filter out the ones that were deployed

Or is there a less complicated approach using a combination of endpoints?

you could do it if you list all the transactions from every block and check what transaction created a contract

1 Like

you could also use Streams API to listen for an event specific to when a contract is created, usually you will see change membership event when a contract is deployed

any timeframe for when the endpoint to directly display them will be created?

never dealt with streams yet, could you provide a link to the stream that i need please

this is the documentation:

you can test it easily in admin interface directly

1 Like

perfect, thank you so much

2 Likes