Skip to main content

stablecoin-freeze-check

Check whether an address is frozen (blacklisted) by Tether or Circle, straight from the token contracts.

Token Chains Contract call
USDT Ethereum isBlackListed(address) on 0xdAC17F958D2ee523a2206206994597C13D831ec7
USDT Tron getBlackListStatus(address) on TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t
USDC (native) Ethereum, Base, Arbitrum, Optimism, Polygon, Avalanche isBlacklisted(address) on each chain's Circle USDC contract

The answer is the contract's own state at the latest block. Python 3.9+, standard library only, no API key.

pip install stablecoin-freeze-check

CLI

stablecoin-freeze-check 0xYourAddress...
# {"address": "0x...", "chain": "ethereum", "usdt": false, "usdc": {"ethereum": false}}

stablecoin-freeze-check 0xYourAddress... --usdc-chains all
# {"address": "0x...", "chain": "ethereum", "usdt": false,
#  "usdc": {"ethereum": false, "base": false, "arbitrum": false, "optimism": false, "polygon": false, "avalanche": false}}

stablecoin-freeze-check TYourTronAddress...
# {"address": "T...", "chain": "tron", "usdt": false}

Pass several addresses to check them in order; each prints one JSON line. Exit code 0 means every check returned an answer. Exit code 1 means at least one did not (bad address or RPC error); the error is printed to stderr as JSON, or shown as "error: ..." for that USDC chain.

Flag Default Use
--usdc-chains ethereum comma list (base,arbitrum) or all
--rpc https://ethereum-rpc.publicnode.com any Ethereum JSON-RPC URL
--trongrid https://api.trongrid.io TronGrid or a compatible node
--tron-api-key none TronGrid key for higher rate limits
--timeout 20 seconds per request

python -m stablecoin_freeze_check ... works too.

Library

from stablecoin_freeze_check import (
    check_address,
    usdt_frozen_on_ethereum,
    usdt_frozen_on_tron,
    usdc_frozen,
    usdc_frozen_on_chains,
    usdc_frozen_batch,
)

check_address("0x...")                      # USDT + USDC on Ethereum
check_address("0x...", usdc_chains=None)    # USDT + USDC on all six chains
check_address("T...")                       # USDT on Tron

usdc_frozen("0x...", chain="base")          # True / False
usdc_frozen_on_chains("0x...")              # {"ethereum": False, "base": False, ...}
usdc_frozen_batch(["0x...", "0x..."], chain="arbitrum")  # one JSON-RPC batch request
usdt_frozen_on_tron("T...", api_key="...")  # optional TronGrid key
usdt_frozen_on_ethereum("0x...", rpc="https://your-node.example")

Also exported: tron_to_hex20 (base58check decode with checksum check), is_evm_address, is_tron_address, CONTRACTS, USDC_CHAINS.

Things to know

  • Spelling matters. USDT uses isBlackListed (capital L), USDC uses isBlacklisted. Calling the wrong one reverts.
  • USDC is a proxy. Calling the proxy address is correct; the call is forwarded to the current implementation.
  • Tron addresses are base58check. The checksum is verified before calling TronGrid, so a typo raises an error instead of checking the wrong address.
  • An error is "unknown", never "not frozen". usdc_frozen_on_chains reports a failed chain as "error: ..." instead of False.
  • Public endpoints rate-limit. For batch jobs, pass your own RPC URLs and a TronGrid key.
  • False only means "not on this freeze list right now". It says nothing about other chains, other tokens, sanctions lists or where the funds came from, and an address can be added at any time.
  • Not covered: USDT on chains other than Ethereum and Tron, bridged USDC, and freeze history. For history, read the AddedBlackList / Blacklisted events.

How it works

A tested walkthrough of the same code, step by step: How to check if an address is blacklisted on USDT or USDC in Python (six USDC chains plus Tron).

No Python? The same checks run as a no-code bulk tool on Apify (USDT & USDC Freeze Checker) and in the browser on Hugging Face (usdt-freeze-checker Space).

Who made this

Built by the Veriql team. veriql.app has a free web checker, and its paid API (veriql.app/api) can watch Ethereum or Tron addresses and send a webhook when Tether freezes one. This package does not call Veriql; it only calls the RPC endpoints you give it (public ones by default).

License

MIT

Metadata

Release files for stablecoin-freeze-check 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stablecoin-freeze-check 0.1.0
File Size Uploaded Provenance Actions
stablecoin_freeze_check-0.1.0.tar.gz 10.2 kB Without provenance Details for stablecoin_freeze_check-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stablecoin-freeze-check 0.1.0
File Interpreter ABI Platform Actions
stablecoin_freeze_check-0.1.0-py3-none-any.whl Python 3 none any Details for stablecoin_freeze_check-0.1.0-py3-none-any.whl

Total release size: 19.7 kB

Release files / stablecoin_freeze_check-0.1.0.tar.gz

Download URL stablecoin_freeze_check-0.1.0.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a58c0e85b524157b162676fae51f4d87ed737a1e8a45b8cba86d986ac2ef56db
BLAKE2b-256 checksum
How to use checksums
a4cebd7eab1660a1a76f50d5fe8952b0ba4d34e53d11cf5489aeaca70cdb3faf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.6

Release files / stablecoin_freeze_check-0.1.0-py3-none-any.whl

Download URL stablecoin_freeze_check-0.1.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1822e0218a65e9bf1762b0e14b50c8fd2de9854d37515d62b7f4afb2db5c509e
BLAKE2b-256 checksum
How to use checksums
beb2448db3c0294d0d63d52da9c7db318fdd39eaaeb1fb1006ab86580b53b2c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.6

Security for stablecoin-freeze-check 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page