Skip to content

Latest commit

 

History

History
107 lines (67 loc) · 3.17 KB

README.md

File metadata and controls

107 lines (67 loc) · 3.17 KB

py-token-contracts

Content

DISCLAIMER

To the content

⠀All data was parsed automatically, so be sure to check for correct addresses before use. If an incorrect address is found, replace it via PR.

⠀By using this library you agree that you have checked all the contract addresses used and have no claims against the library author.

Short description

To the content

⠀The library contains instances of tokens from the top 1000 CoinMarketCap and other frequently used tokens with the following information:

  • Symbol;
  • Contract adderesses of the most popular networks:
    • Arbitrum;
    • Arbitrum Nova;
    • Avalanche;
    • BSC;
    • Celo;
    • Ethereum;
    • Fantom;
    • Gnosis;
    • HECO;
    • Moonbeam;
    • Optimism;
    • Polygon.
  • CoinMarketCap name;
  • CoinGecko name.

⠀All addresses are checksummed. There's also a dictionary with all tokens to get the instance by key as a token symbol.

Useful links

To the content

py-token-contracts

py-eth-async

py-eth

Installation

To the content

⠀You need execute the command below to install or update the library:

pip install --force-reinstall git+https://github.com/SecorD0/py-token-contracts

Usage

To the content

⠀Example usage:

from py_token_contracts.tokens import USDC, ETH, all_tokens

print(ETH.Ethereum)  # Wrapped ETH
#0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

print(USDC.Optimism)
# 0x7F5c764cBc14f9669B88837ca1490cCa17c31607

print(all_tokens['USDT'].Polygon)
# 0xc2132D05D31c914a87C6611C10748AEb04B58e8F

Report a bug or suggest an idea

To the content

⠀If you found a bug or have an idea, go to the link, select the template, fill it out and submit it.

Express your gratitude

To the content

⠀You can express your gratitude to the developer by sending fund to crypto wallets!

  • Ethereum-like address (Ethereum, BSC, Moonbeam, etc.): 0x900649087b8D7b9f799F880427DacCF2286D8F20
  • USDT TRC-20: TNpBdjcmR5KzMVCBJTRYMJp16gCkQHu84K
  • SOL: DoZpXzGj5rEZVhEVzYdtwpzbXR8ifk5bajHybAmZvR4H
  • BTC: bc1qs4a0c3fntlhzn9j297qdsh3splcju54xscjstc