OpenViSTAI · Agents · Blockchain · Crypto
Menu
Developer Tools

Bscscan Python

Bscscan Python is an open-source asynchronous Python library that wraps BscScan.com API endpoints, including queries for BNB balances, address transactions, BEP-20 token transfer events, contract data and blocks.

Independent OpenViST project profile, based on linked sources.

Bscscan Python — OpenViST project profile in Developer Tools.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when a Python program needs asynchronous access to BscScan explorer data and can authenticate with a BscScan API key.

Who it is for

  • Python developers building applications that retrieve data from BscScan.
  • Developers creating address-history dashboards or token-transfer monitoring tools using BscScan endpoints.

Documented uses

  • Retrieve BNB balances for one or more addresses.
  • Fetch normal or internal transaction history, including paginated address queries.
  • Query BEP-20 and BEP-721 token transfer events.
  • Request contract, transaction, block, proxy, token, statistics and log data exposed by the listed endpoints.
Before you choose

Requirements & limits

The README says users should register for a BscScan account and generate a personal API key. The package is available through PyPI and the GitHub repository; the repository specifies an MIT license.

  • The library depends on BscScan.com APIs and a personal BscScan API key.
  • Its interface is asynchronous Python, using an async context manager and awaited method calls in the README example.
  • The endpoint list includes account, transaction, contract, block, proxy, token, statistics and log groups; consult the linked documentation for method arguments and results.
  • The README identifies Python 3.8.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up a balance query client

Install the package and use the README’s async example to request a BNB balance from BscScan.

Before you start

  • Python 3.8, as identified in the repository README
  • A BscScan account and personal API key
  • PyPI access or the GitHub repository

Steps

  1. Install from PyPI with the command below, or use the repository’s documented source-install command.

    Documented command
    pip install bscscan-python
  2. Import asyncio and BscScan from bscscan in a Python program.

  3. Create an asynchronous function and open BscScan(YOUR_API_KEY) with async with.

  4. Await get_bnb_balance with an address argument, then run the function with asyncio.run.

Expected outcome

An asynchronous client request for a BNB balance, following the example in the README.

Guide limitations

  • The request depends on a personal BscScan API key; the README directs users to register and generate one.
  • The guide follows the documented balance example and does not cover other endpoint arguments.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
13 October 2026
Original website title
pcko1/bscscan-python · Official homepage title · retained in its source language