Created
February 6, 2025 10:56
-
-
Save 0xV4L3NT1N3/b430b23ca54b8cc6a11008b83b15c610 to your computer and use it in GitHub Desktop.
Newly Flaunched Tokens
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function flaunch() { | |
| // fetch transactions from etherscan | |
| const query = await fetch(`https://api.etherscan.io/v2/api?chainid=8453&module=account&action=txlistinternal&address=0x6A53F8b799bE11a2A3264eF0bfF183dCB12d9571&startblock=0&endblock=99999999&page=1&offset=10&sort=desc&apikey=YourApiKeyToken`) | |
| const data = await query.json() | |
| // filter for second CREATE2 transaction, which is the token address | |
| const flaunchedTokens = data.result | |
| .filter((_, index) => index % 2 === 1) | |
| .map(item => `https://basescan.org/address/${item.contractAddress}`) | |
| // profit | |
| console.log(flaunchedTokens); | |
| } | |
| flaunch() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment