HTTP API, unable to make a call

Hi, everybody!
I need some help, guys. Just try to understand how to use access api

I can’t realize how should I properly make call on blocks - https://rest-mainnet.onflow.org/v1/blocks.
How should I pass parameters like start_height and end_height? Or parameter of array of heights?
Thanks for any help :slightly_smiling_face:

put as query parameters there, https://rest-mainnet.onflow.org/v1/blocks?height=sealed for example.

basically if request type is GET, query parameters, if POST, request body.

1 Like

Thank you for your answer. But what about heights in range or height in array? I just can’t get any information trying to make call like this
https://rest-mainnet.onflow.org/v1/blocks?start_height=10?end_height=15

let me give you an example:

https://rest-mainnet.onflow.org/v1/blocks?start_height=46152377&end_height=46152380

query string parameters can be combined with &

PS: if you join discord, you can get faster answers

2 Likes

Yeah, it’s working. Thank you so much! Will ask through Discord on further questions

yeah I am bluesign there too, don’t hesitate to ask, glad to help