NadirAliOfficial
ankr-token-swapper
Python

Lightweight Python utility for token interactions via Ankr RPC. Easily check token balances, buy tokens with ETH, or sell them using Uniswap/PancakeSwap routers.

Last updated Jul 1, 2026
11
Stars
0
Forks
0
Issues
0
Stars/day
Attention Score
39
Language breakdown
No language data available.
Files click to expand
README

Ankr Token Swapper

Lightweight Python utility for token swaps via Ankr RPC — interacts with DEX contracts directly.

Features

  • Token swap via Uniswap/PancakeSwap router
  • Ankr RPC endpoint integration
  • Slippage protection
  • Transaction receipt logging

Requirements

pip install web3 python-dotenv

Configuration

ANKRRPCURL=https://rpc.ankr.com/eth/your_key
PRIVATEKEY=yourwalletprivatekey

Usage

python swap.py --from USDC --to ETH --amount 100

License

MIT

© 2026 GitRepoTrend · NadirAliOfficial/ankr-token-swapper · Updated daily from GitHub