get_logs() Doesn't return all of the possible transaction and stops mid-way.
MrYoung-dev opened this issue · comments
Describe the bug
The get_Logs() function does not return all the possible transaction that matches the filter arguments handed to it.
To Reproduce
In order to assist you with your problem, we need a minimal code snippet that replicates the bug. Avoid disclosing your API keys.
async with BscScan(API_KEY) as client:
#try:
code = await client.get_logs(
from_block="desired-start-block",
to_block="desired-end-block",
address ="address-of-desired-ca",
topic_0 = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
topic_0_2_opr="and",
topic_2="desired-address"
)```
Steps to reproduce the behavior:
1. Create a request for get_logs
2. Hand it a topic_0 for a transfer event
3. give it a topic 2 of a certain CA
4. Print the results
**Expected behavior**
I tried this command on a coin with 14,000 transaction and I was only able to retrieve the first 1,000 transaction before it quit. I cannot tell if this is an error on my side or due to the API's problem.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**System info (please complete the following information):**
- OS and version: [e.g. Mac Catalina OS]
- Python version: [e.g. `3.8.2`]
- `bscscan-python` version: [e.g. `2.0.0`]
**Additional context**
Add any other context about the problem here.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.