Skip to content
This new developer portal is under construction. For complete documentation, please refer to the old developer portal.

Get the block for the given round.

GET
/v2/blocks/{round}

Authorizations

Parameters

Path Parameters

round
required
integer

The round from which to fetch block information.

Query Parameters

format
string
Allowed values: json msgpack

Configures whether the response object is JSON or MessagePack encoded. If not provided, defaults to JSON.

header-only
boolean

If true, only the block header (exclusive of payset or certificate) may be included in response.

Responses

200

Encoded block object.

object
block
required

Block header data.

object
cert

Optional certificate object. This is only included when the format is set to message pack.

object

400

Bad Request - Non integer number

An error response with optional data field.

object
data
object
message
required
string

401

Invalid API Token

An error response with optional data field.

object
data
object
message
required
string

404

None existing block

An error response with optional data field.

object
data
object
message
required
string

500

Internal Error

An error response with optional data field.

object
data
object
message
required
string

default

Unknown Error