Blocks

GetBlocks InjectiveExplorerRPC

get

GetBlocks returns blocks based upon the request params

Query parameters
beforeintegerOptionalExample: 7350416807435321000
afterintegerOptionalExample: 8173896910879353000
limitinteger · int64OptionalExample: 8206924992435456000
Responses
200
OK response.
application/json
get
GET /api/explorer/v1/blocks HTTP/1.1
Host: inj-indexer.nownodes.io
Accept: */*
{
  "data": [
    {
      "block_hash": "Quisquam vel est quisquam fuga culpa.",
      "height": 7913584344917350000,
      "moniker": "Laborum aspernatur error non quia ipsam sed.",
      "num_pre_commits": 3828964990679098000,
      "num_txs": 7790533122912402000,
      "parent_hash": "Fuga vel est tempore odio sed.",
      "proposer": "Laudantium laborum ad corrupti.",
      "timestamp": "1987-12-12T05:05:01Z",
      "txs": [
        {
          "block_number": 7460329312294506000,
          "block_timestamp": "1998-09-06T12:47:28Z",
          "claim_ids": [
            5582707798056534000,
            2453355119793993000,
            4868349734503005000,
            8192557964697533000
          ],
          "code": 1159005041,
          "codespace": "Non id.",
          "error_log": "Vitae temporibus ipsa facere incidunt.",
          "hash": "Occaecati natus illum sunt autem dolores.",
          "id": "Adipisci in aspernatur velit eaque ipsa.",
          "messages": "Quasi iure iusto nam dolorem.",
          "tx_number": 363156334822020400
        },
        {
          "block_number": 7460329312294506000,
          "block_timestamp": "1998-09-06T12:47:28Z",
          "claim_ids": [
            5582707798056534000,
            2453355119793993000,
            4868349734503005000,
            8192557964697533000
          ],
          "code": 1159005041,
          "codespace": "Non id.",
          "error_log": "Vitae temporibus ipsa facere incidunt.",
          "hash": "Occaecati natus illum sunt autem dolores.",
          "id": "Adipisci in aspernatur velit eaque ipsa.",
          "messages": "Quasi iure iusto nam dolorem.",
          "tx_number": 363156334822020400
        },
        {
          "block_number": 7460329312294506000,
          "block_timestamp": "1998-09-06T12:47:28Z",
          "claim_ids": [
            5582707798056534000,
            2453355119793993000,
            4868349734503005000,
            8192557964697533000
          ],
          "code": 1159005041,
          "codespace": "Non id.",
          "error_log": "Vitae temporibus ipsa facere incidunt.",
          "hash": "Occaecati natus illum sunt autem dolores.",
          "id": "Adipisci in aspernatur velit eaque ipsa.",
          "messages": "Quasi iure iusto nam dolorem.",
          "tx_number": 363156334822020400
        },
        {
          "block_number": 7460329312294506000,
          "block_timestamp": "1998-09-06T12:47:28Z",
          "claim_ids": [
            5582707798056534000,
            2453355119793993000,
            4868349734503005000,
            8192557964697533000
          ],
          "code": 1159005041,
          "codespace": "Non id.",
          "error_log": "Vitae temporibus ipsa facere incidunt.",
          "hash": "Occaecati natus illum sunt autem dolores.",
          "id": "Adipisci in aspernatur velit eaque ipsa.",
          "messages": "Quasi iure iusto nam dolorem.",
          "tx_number": 363156334822020400
        }
      ]
    },
    {
      "block_hash": "Quisquam vel est quisquam fuga culpa.",
      "height": 7913584344917350000,
      "moniker": "Laborum aspernatur error non quia ipsam sed.",
      "num_pre_commits": 3828964990679098000,
      "num_txs": 7790533122912402000,
      "parent_hash": "Fuga vel est tempore odio sed.",
      "proposer": "Laudantium laborum ad corrupti.",
      "timestamp": "1987-12-12T05:05:01Z",
      "txs": [
        {
          "block_number": 7460329312294506000,
          "block_timestamp": "1998-09-06T12:47:28Z",
          "claim_ids": [
            5582707798056534000,
            2453355119793993000,
            4868349734503005000,
            8192557964697533000
          ],
          "code": 1159005041,
          "codespace": "Non id.",
          "error_log": "Vitae temporibus ipsa facere incidunt.",
          "hash": "Occaecati natus illum sunt autem dolores.",
          "id": "Adipisci in aspernatur velit eaque ipsa.",
          "messages": "Quasi iure iusto nam dolorem.",
          "tx_number": 363156334822020400
        },
        {
          "block_number": 7460329312294506000,
          "block_timestamp": "1998-09-06T12:47:28Z",
          "claim_ids": [
            5582707798056534000,
            2453355119793993000,
            4868349734503005000,
            8192557964697533000
          ],
          "code": 1159005041,
          "codespace": "Non id.",
          "error_log": "Vitae temporibus ipsa facere incidunt.",
          "hash": "Occaecati natus illum sunt autem dolores.",
          "id": "Adipisci in aspernatur velit eaque ipsa.",
          "messages": "Quasi iure iusto nam dolorem.",
          "tx_number": 363156334822020400
        },
        {
          "block_number": 7460329312294506000,
          "block_timestamp": "1998-09-06T12:47:28Z",
          "claim_ids": [
            5582707798056534000,
            2453355119793993000,
            4868349734503005000,
            8192557964697533000
          ],
          "code": 1159005041,
          "codespace": "Non id.",
          "error_log": "Vitae temporibus ipsa facere incidunt.",
          "hash": "Occaecati natus illum sunt autem dolores.",
          "id": "Adipisci in aspernatur velit eaque ipsa.",
          "messages": "Quasi iure iusto nam dolorem.",
          "tx_number": 363156334822020400
        },
        {
          "block_number": 7460329312294506000,
          "block_timestamp": "1998-09-06T12:47:28Z",
          "claim_ids": [
            5582707798056534000,
            2453355119793993000,
            4868349734503005000,
            8192557964697533000
          ],
          "code": 1159005041,
          "codespace": "Non id.",
          "error_log": "Vitae temporibus ipsa facere incidunt.",
          "hash": "Occaecati natus illum sunt autem dolores.",
          "id": "Adipisci in aspernatur velit eaque ipsa.",
          "messages": "Quasi iure iusto nam dolorem.",
          "tx_number": 363156334822020400
        }
      ]
    }
  ],
  "paging": {
    "countBySubaccount": 3144167030999342600,
    "from": 1916499695,
    "next": [
      "Ea rerum.",
      "Aut dolorem cum voluptas quae.",
      "Voluptas repellendus qui ipsam est."
    ],
    "to": 391437627,
    "total": 7364854934794692000
  }
}

GetBlock InjectiveExplorerRPC

get

GetBlock returns block based upon the height or hash

Path parameters
idstringRequiredExample: Ut molestias.
Responses
200
OK response.
application/json
get
GET /api/explorer/v1/blocks/{id} HTTP/1.1
Host: inj-indexer.nownodes.io
Accept: */*
{
  "data": {
    "block_hash": "Nisi et non autem qui quisquam blanditiis.",
    "height": 17801735147468460000,
    "moniker": "Totam quaerat adipisci quia non tenetur ad.",
    "num_pre_commits": 6767922304148378000,
    "num_txs": 7120419597641302000,
    "parent_hash": "Inventore ad praesentium iusto voluptatibus.",
    "proposer": "Corporis aut unde possimus libero quae.",
    "timestamp": "1994-02-23T11:14:26Z",
    "total_txs": 6714566575838770000,
    "txs": [
      {
        "block_number": 12096032869960399000,
        "block_timestamp": "1982-06-19T15:39:06Z",
        "claim_ids": [
          3873692323631982600,
          5450697942010433000
        ],
        "code": 2092492935,
        "codespace": "Magni maiores in incidunt.",
        "error_log": "Asperiores hic necessitatibus quo tempora sunt.",
        "hash": "Ut asperiores repellendus.",
        "id": "Voluptate sunt temporibus eveniet ullam aut.",
        "logs": "VXQgc2l0Lg==",
        "messages": "VXQgbGFib3J1bS4=",
        "tx_msg_types": "UXVpYSB0b3RhbS4=",
        "tx_number": 12001273661897265000
      },
      {
        "block_number": 12096032869960399000,
        "block_timestamp": "1982-06-19T15:39:06Z",
        "claim_ids": [
          3873692323631982600,
          5450697942010433000
        ],
        "code": 2092492935,
        "codespace": "Magni maiores in incidunt.",
        "error_log": "Asperiores hic necessitatibus quo tempora sunt.",
        "hash": "Ut asperiores repellendus.",
        "id": "Voluptate sunt temporibus eveniet ullam aut.",
        "logs": "VXQgc2l0Lg==",
        "messages": "VXQgbGFib3J1bS4=",
        "tx_msg_types": "UXVpYSB0b3RhbS4=",
        "tx_number": 12001273661897265000
      }
    ]
  },
  "errmsg": "Something has failed",
  "s": "error"
}