Skip to content

Educational Code to Explain How Drainers Work: To Prevent Anyone from Falling for These Types of Scams.

Notifications You must be signed in to change notification settings

kikeex/solana-drainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Fake Meme Coin DApp

Solana

Welcome to the Fake Meme Coin DApp! This project is designed to educate users on how to securely interact with Phantom Wallet and Solana blockchain, while avoiding common scams such as wallet drainers.

A few months ago, I was drained like an idiot by connecting my wallet to a supposed pre-sale of a memecoin. I lost about $2,000 due to that mistake. So, I dedicated myself to researching how it works and I'm sharing it with you. Please use this only as educational content. Society is full of people looking to benefit by taking advantage of others, and we as programmers have a duty to educate and not harm. So, play with this but NEVER USE IT FOR EVIL.

If it's not running on a server, it won't work. You will always see the Phantom wallet error because it doesn't function locally unless you make the adjustment.

Features

  • Connect to Phantom Wallet
  • Check Wallet Balance
  • Ensure Sufficient Funds for Transactions
  • Securely Mint Tokens

Technologies Used

  • HTML5
  • CSS3
  • JavaScript (jQuery)
  • Solana Web3.js

Getting Started

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed Phantom Wallet
  • You have basic knowledge of HTML, CSS, and JavaScript
  • You have a Solana wallet with some SOL for transaction fees

Installation

  1. Clone the repository
    git clone https://github.com/yourusername/fake-meme-coin-dapp.git
  2. Open index.html in your browser

Usage

  1. Open the index.html file in your browser.
  2. Click the "Connect Wallet" button to connect your Phantom Wallet.
  3. After successful connection, the button will change to "Mint". Click it to mint tokens.

Code Explanation

HTML The index.html file sets up the basic structure of the webpage, including linking to external resources and defining the layout. JavaScript The main functionality is handled by the scripts.js file, which uses jQuery and Solana Web3.js.

APIs Used

Phantom Wallet

We use Phantom Wallet's API to connect to the user's wallet, sign transactions, and send them to the Solana blockchain.

Solana Web3.js

This library provides a convenient way to interact with the Solana blockchain, allowing us to get wallet balances, create and send transactions, and more.

Syndica

We use Syndica as our Solana RPC provider. Syndica offers reliable and scalable infrastructure for interacting with the Solana blockchain. Here are some key points:

  • Why Syndica?: Syndica provides a robust and scalable infrastructure that ensures our DApp can handle a high volume of requests without latency issues.
  • Features: Syndica offers advanced monitoring, analytics, and support, which helps us maintain the performance and reliability of our DApp.
  • Alternatives: Other RPC providers include Alchemy, QuickNode, and Infura. Each of these providers offers similar services, and the choice depends on specific needs and preferences.

Why These APIs?

  • Phantom Wallet: It is one of the most popular and secure wallets for the Solana blockchain, making it a great choice for users.
  • Solana Web3.js: It provides a robust set of tools to interact with the Solana blockchain, ensuring our DApp can perform all necessary operations efficiently.
  • Syndica: It provides a scalable and reliable infrastructure, which is crucial for ensuring the DApp's performance and reliability.

Contributions

Contributions are welcome! Please fork the repository and submit a pull request if you have

About

Educational Code to Explain How Drainers Work: To Prevent Anyone from Falling for These Types of Scams.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published