Comments (3)
try this
import asyncio
from bscscan import BscScan
async def main():
async with BscScan('MY_API') as bsc:
print(await bsc.get_bnb_balance(address="0x0000000000000000000000000000000000001004"))
if __name__=="__main__":
asyncio.run(main())
I suggest either reading up a bit on asyncio
or using the simple (sync
) version of the client [1].
Thank you for this question though, I will improve the documentation by adding this example.
from bscscan-python.
hello, im fully new into this, can you explain to me how to run the code at all :) ? like, can i download any chrome extension to run the code and then enter my preferences in a UI ?
from bscscan-python.
@pt40039 I'm afraid you have to look into basic python
coding because, until then, this software is going to be of no use to you unfortunately.
from bscscan-python.
Related Issues (20)
- Option to pass api endpoint explicitly (to support other chains) HOT 1
- [FEATURE] HOT 2
- get_bep20_token_transfer_events_by_address don't get last blocks [BUG] HOT 4
- [FEATURE] Any way to add token holders information? Thank you HOT 2
- Getting nested transactions [BUG] HOT 1
- [FEATURE] HOT 1
- [BUG] HOT 2
- eth_sendRawTransaction HOT 1
- [BUG] ImportError: cannot import name 'resources' HOT 1
- aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host api.bscscan.com:443 ssl HOT 2
- AttributeError: 'AsyncClient' object has no attribute 'get_bnb_balance' HOT 10
- [FEATURE]get_bep20_token_transfer_events_by_contract_address_paginated better suport startblock HOT 1
- Through API, real-time data cannot be obtained, such as the latest transaction data HOT 1
- [FEATURE]/questioin
- [FEATURE]/quesiton (help) HOT 1
- How to get the function called HOT 1
- Add Contract Address to get_bep20_token_transfer_events_by_address HOT 1
- module methods such as `get_normal_txs_by_address` not working HOT 1
- get_logs() Doesn't return all of the possible transaction and stops mid-way. HOT 1
- SyncClient is owning NO attributes[BUG] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bscscan-python.