DeveloperBreeze

Blockchain Development Programming Tutorials, Guides & Best Practices

Explore 30+ expertly crafted blockchain development tutorials, components, and code examples. Stay productive and build faster with proven implementation strategies and design patterns from DeveloperBreeze.

Tracking Newly Created Tokens on Solana

Tutorial August 09, 2024
javascript nodejs

Step 2: Connect to the Solana Network

Create a new file called index.js and add the following code to connect to the Solana blockchain:

Tracking Newly Created Tokens on Ethereum

Tutorial August 09, 2024
javascript nodejs

  • Etherscan API: We use the tokentx action from Etherscan's API to fetch token transfer events. The API returns a list of token transactions, including newly created tokens.
  • Filter for New Tokens: We filter transactions where the from address is 0x0000000000000000000000000000000000000000, indicating a token creation event. This address is used as a placeholder for the "zero address" in token contracts.
  • Display Information: We log the name, symbol, and contract address of each newly created token.

Step 4: Monitor for New Tokens

Creating a Token on Solana

Tutorial August 09, 2024
bash rust

Replace <RECIPIENT_TOKEN_ACCOUNT> with the token account address of the recipient.

Congratulations! You have successfully created, minted, and transferred a custom token on the Solana blockchain. This tutorial introduced you to the SPL Token Program and demonstrated how to manage tokens using the Solana and SPL Token CLIs. With this knowledge, you can start building more complex decentralized applications on Solana and explore its capabilities further.