Get Block

GET {{baseUrl}}/block?from=<>&to=<>

By default, this call returns the last confirmed block, since the from and to parameters will both default to the last confirmed slot number. To get a range of blocks, use the from and to parameters. Specifying only the from parameter will get a range of blocks up to the current slot. Note that this also means that specifying to without from will result in an error since that will mean a negative range.

For each returned item, the data will contain header information from the bloc

Request Params

KeyDatatypeRequiredDescription
fromstringSpecify the starting slot to return
tostringSpecify the last slot to return

HEADERS

KeyDatatypeRequiredDescription
MCWSSAMLstringSAML Authorization