Hi there, I am new to Flow and currently I am trying to follow Eric Ren’s medium blog to poll NBA topshot purchase events from flow:
However, this part always gave me an error message:
blockEvents, err := flowClient.GetEventsForHeightRange(context.Background(), client.EventRangeQuery{
Type: “A.c1e4f4f4c4257510.Market.MomentPurchased”,
StartHeight: latestBlock.Height - 500,
EndHeight: latestBlock.Height,
})
panic: client: rpc error: code = InvalidArgument desc = requested block range (501) exceeded maximum (250)
If I changed the parameter from 500 to 200, then I did not get anything in return.
Can anyone help me out here?
Thanks a bunch!