Block search

get

Search for blocks by BeginBlock and EndBlock events.

See /subscribe for the query syntax.

Query parameters
querystringRequired

Query

Example: block.height > 1000 AND valset.changed > 0
pageintegerOptional

Page number (1-based)

Default: 1Example: 1
per_pageintegerOptional

Number of entries per page (max: 100)

Default: 30Example: 30
order_bystringOptional

Order in which blocks are sorted ("asc" or "desc"), by height. If empty, default sorting will be still applied.

Default: descExample: asc
match_eventsbooleanOptional

Match attributes in query within events, in addition to the height

Default: falseExample: true
Responses
500
Error
application/json
Responseall of

Error Response

get
GET /block_search HTTP/1.1
Host: inj-tendermint.nownodes.io
Accept: */*
500

Error

{
  "id": 0,
  "jsonrpc": "2.0",
  "error": "Description of failure"
}