Home

Get previous blocks

GET
https://ada-blockfrost.nownodes.io/blocks/{block_id}/previous

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns a paginated list of blocks that precede the specified block.

Parameters

block_idstringrequiredpath

Block hash or block number of the starting block.

Response

200OK

HTTP 200 response for getPreviousBlocks.

400Bad Request

Bad Request. The request is malformed or contains invalid parameters.

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Internal Server Error. The gateway or backend failed while processing the request.