Skip to content

whonion/py-bungee-refueler

Repository files navigation

py-bungee-refueler

Status Test Run Python version Web3.py version
Batch send gas-token bungee.exchange (Powered by Socket)

main.py preview

py-bungee-refueler

main_ru.py preview

py-bungee-refueler-ru

Package description

  • main.py - main module for execute;
  • main_ru.py - main module for execute(russian localization);
  • refuel.py - module for getting actual EVM chain data (minAmount/maxAmount, network availability);
  • chains.json - formatted json file obtained from https://refuel.socket.tech/chains (updated every time the script is run);
  • config.py - module containing the required imports, settings of minimum amounts to send, url-addresses of block explorers;
  • ABI/socket.json - ABI of Socket GasMovr contract.

Description of required files

  • accounts.txt - private keys of wallets
  • recipient_addresses.txt - addresses of recipient (if you want to send to another address)
  • .env - the file with your RPC variables and contract address of Socket GasMovr

example of .env-file

# https://docs.socket.tech/socket-api/contract-addresses

BUNGEE_ETH_ROUNER = '0xb584d4be1a5470ca1a8778e9b86c81e165204599'
BUNGEE_OPT_ROUTER = '0x5800249621da520adfdca16da20d8a5fc0f814d8'
BUNGEE_BSC_ROUTER = '0xBE51D38547992293c89CC589105784ab60b004A9'
BUNGEE_GNO_ROUNER = '0xBE51D38547992293c89CC589105784ab60b004A9'
BUNGEE_MATIC_ROUNER = '0xAC313d7491910516E06FBfC2A0b5BB49bb072D91'
BUNGEE_ERA_ROUNER = '0xaDdE7028e7ec226777e5dea5D53F6457C21ec7D6'
BUNGEE_ZKEVM_ROUNER = '0x3a23F943181408EAC424116Af7b7790c94Cb97a5'
BUNGEE_ARB_ROUNER = '0xc0e02aa55d10e38855e13b64a8e1387a04681a00'
BUNGEE_AVAX_ROUNER = '0x040993fbF458b95871Cd2D73Ee2E09F4AF6d56bB'
BUNGEE_AUR_ROUNER = '0x2b42AFFD4b7C14d9B7C2579229495c052672Ccd3'
BUNGEE_FTM_ROUNER = '0x040993fbF458b95871Cd2D73Ee2E09F4AF6d56bB'

#Specify your `API_KEY` if you use Anr or change RPC's constants and specify your own private RPCs
# Don't recommended to use a public node if you've many wallets else you'll get '429 Client Error: Too Many Requests for url'

RPC_ETH = 'https://rpc.ankr.com/eth/API_KEY'
RPC_OPT = 'https://rpc.ankr.com/optimism/API_KEY'
RPC_BSC = 'https://rpc.ankr.com/bsc/API_KEY'
RPC_GNO = 'https://rpc.ankr.com/gnosis/API_KEY'
RPC_MATIC = 'https://rpc.ankr.com/polygon/API_KEY'
RPC_FTM =  'https://rpc.ankr.com/fantom/API_KEY'
RPC_ERA = 'https://mainnet.era.zksync.io'
RPC_ZKEVM = 'https://rpc.ankr.com/polygon_zkevm/API_KEY'
RPC_ARB = 'https://rpc.ankr.com/arbitrum/API_KEY'
RPC_AVAX = 'https://rpc.ankr.com/avalanche/API_KEY'
RPC_AUR = 'https://endpoints.omniatech.io/v1/aurora/mainnet/public'

How run

  • Install Python to your system;
  • Activate the Python Virtual Environment (recommended);
#For Windows
 python -m venv .venv
 .\.venv\Scripts\activate
# For Linux 
 source .venv/bin/activate
  • Install dependencies.
pip install -r requierements.txt
  • Add your private keys to the accounts.txt file;
  • Add your RPCs to the `.env' file;
  • Add recipient addresses to recipient_addresses.txt for receive in the target network's native token on another address;
  • Run main.py and follow the script prompts.

for Windows

python .\main.py

for Linux

python3 ./main.py

Releases

No releases published

Packages

No packages published

Languages