Skip to main content

Testnet faucet extractor (Proof of Concept)

Project description

Faucet Extractor PoC

This project is a Proof of Concept (PoC) for a faucet extractor. It sends a request to a given URL of a faucet and tries to claim a testnet token.

Features

  • Sends a request to a specified faucet URL
  • Attempts to claim testnet tokens

Requirements

  • Python 3.10
  • requests library
  • python-dotenv library

Environment Variables

The following environment variables need to be set before using the project:

  • DISCORD_WEBHOOK_URL (optional) - Discord webhook URL for notifications
  • ERC20_ADDRESSES - Comma-separated list of ERC20 addresses
  • BERA_FAUCET_URL - Bera faucet URL
  • MONAD_FAUCET_URL - Monad faucet URL

Installation

Method 1: Install from PyPI (Recommended)

Install the package directly from PyPI:

pip install faucet-extractor-poc

Method 2: Install from Source

  1. Clone the repository:

    git clone https://github.com/niagarafinance/faucet-extractor-poc.git
    
  2. Navigate to the project directory:

    cd faucet-extractor-poc
    
  3. Install the package in development mode:

    pip install -e .
    

Usage

Before running the project, make sure to set the required environment variables.

export BERA_FAUCET_URL="https://bera-faucet-url.com"
export MONAD_FAUCET_URL="https://monad-faucet-url.com"

To run the project, use the appropriate command:

Using the installed package

faucet-extractor --faucet MON 0x1234567890123456789012345678901234567890

Multiple addresses with faucet type

faucet-extractor --faucet BERA 0xAddress1 0xAddress2 0xAddress3

Using environment variable with faucet

export ERC20_ADDRESSES="0xAddress1,0xAddress2"
faucet-extractor --faucet BERA

Running directly from the source

If you installed from source, you can also run the module directly:

python -m src.faucet_extractor_poc.extract --faucet MON 0x1234567890123456789012345678901234567890

Show help

faucet-extractor --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

faucet_extractor_poc-1.1.2.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

faucet_extractor_poc-1.1.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file faucet_extractor_poc-1.1.2.tar.gz.

File metadata

  • Download URL: faucet_extractor_poc-1.1.2.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for faucet_extractor_poc-1.1.2.tar.gz
Algorithm Hash digest
SHA256 f87e9e8463cb0d3cce0a1affa1c174ccefa705255c1423e668c4a679349ef867
MD5 17cb2c3ea28a799b5ba71df713469477
BLAKE2b-256 c60d8f20eab5be762c630c85287adfc5dc5a1694629dae9edb3750bc111aa2a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for faucet_extractor_poc-1.1.2.tar.gz:

Publisher: python-publish.yml on niagarafinance/faucet-extractor-poc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file faucet_extractor_poc-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for faucet_extractor_poc-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1475e6c80a0950e57fea621ce00ba743309e03e9055300d5f32286165fea6397
MD5 c423d7a9f792d8d5289d52dc95dc61b8
BLAKE2b-256 186a7e52ec0039691490a3962fc3978b0e8e7d4e4929dba9057e3b4a43121bd0

See more details on using hashes here.

Provenance

The following attestation bundles were made for faucet_extractor_poc-1.1.2-py3-none-any.whl:

Publisher: python-publish.yml on niagarafinance/faucet-extractor-poc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page