Hello, I’m trying to get log events for wrapped matic with python. Here’s the code I use.
res = requests.get(
url=f"https://api.covalenthq.com/v1/{chain_id}/events/address/{address}/",
params={
'starting-block': starting_block,
'ending-block': ending_block,
'key': api_key,
'page-number': page_number,
'page-size': page_size,
},
timeout=None
)
This works well with other contracts, but I keep getting 504 error codes with matic. It’s also very inconsistent. If I wait about 5-10 minutes and run the same code with the same parameters, then it goes through. The address of the wrapped matic I use is: 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270