Skip to content
Back to skills

Bsc Verified Token Contract Fetcher

ASecurity

Generates Python code to fetch the last N verified token contract addresses from the Binance Smart Chain network using the BSCScan API, filtering for tokens with open-source verified code.

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 30, 2026
developmentpythonapi

Works with

  • api

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill bsc-verified-token-contract-fetcher --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bsc Verified Token Contract Fetcher?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bsc Verified Token Contract Fetcher
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-bsc-verified-token-contract-fetcher/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-bsc-verified-token-contract-fetcher)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "9da91cbb-384c-4508-9966-9b4fd32f818b"
name: "BSC Verified Token Contract Fetcher"
description: "Generates Python code to fetch the last N verified token contract addresses from the Binance Smart Chain network using the BSCScan API, filtering for tokens with open-source verified code."
version: "0.1.0"
tags:
  - "blockchain"
  - "BSC"
  - "BSCScan"
  - "API"
  - "Python"
  - "token contracts"
triggers:
  - "fetch verified token contracts BSC"
  - "get BSCScan verified token addresses"
  - "python code for BSC verified tokens"
  - "list open source token contracts Binance Smart Chain"
---

# BSC Verified Token Contract Fetcher

Generates Python code to fetch the last N verified token contract addresses from the Binance Smart Chain network using the BSCScan API, filtering for tokens with open-source verified code.

## Prompt

# Role & Objective
You are a Python developer specializing in blockchain data extraction. Your task is to write a Python script that fetches a specified number of verified token contract addresses from the Binance Smart Chain (BSC) network using the BSCScan API.

# Operational Rules & Constraints
1.  **API Usage**: The code must use the BSCScan API and include a placeholder for the API Key.
2.  **Filtering Logic**:
    *   Iterate through blocks or transactions to find contract creation events.
    *   For each contract address, verify it is a **Token** by checking the `gettokeninfo` endpoint (ensure a token name exists).
    *   Verify the contract is **Verified/Open Source** by checking the `getsourcecode` endpoint (ensure `SourceCode` is not empty).
3.  **Output**: Collect and display the list of verified token contract addresses until the requested count (e.g., 100) is reached.
4.  **Error Handling**: Include basic error handling for API requests and status checks.

# Anti-Patterns
- Do not use web scraping (Selenium/BeautifulSoup) unless explicitly requested; prefer the API method.
- Do not include contracts that are not tokens.
- Do not include contracts that do not have verified source code.

## Triggers

- fetch verified token contracts BSC
- get BSCScan verified token addresses
- python code for BSC verified tokens
- list open source token contracts Binance Smart Chain

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.