Best way to get all contract call transactions within time range

Hi I want to find all the contract call transactions and the associated parameters, owned by an account. I also want to limit the query by time range.

What I’m trying now is querying /v3/key-blocks and finding the closest block to the start time and end time using a binary search to find the transactions , not sure if this is the best approach.

also once I ffind the block height how can I restrict results to withing the range the /v3/account/<>/activities only accepts txi

Here’s the erlang code for my current attempt DamageBDD/src/damage_ae.erl at 3b2db9a0fe03debdc84943bea7f8c7913c416124 · DamageBDD/DamageBDD · GitHub

Thanks

Steven

1 Like