event

Returns all events from the database that satisfy the query parameters. It will return a paginated response, ordered descending by block number and ascending event index.

get/events

Request

  • Base URL: https://bridge-hub.polkadot.crystal.api.submerge.io/v1
  • URL: https://bridge-hub.polkadot.crystal.api.submerge.io/v1/events
  • Auth: none declared

Query parameters

next_cursorstring

Opaque cursor for pagination - returned in the endpoint response. This parameter is mutually exclusive with all other parameters, and will return bad request if any other parameter is set.

page_sizeinteger

Number of events per page to be returned.

min_block_numberinteger

Filter events by minimum block number.

max_block_numberinteger

Filter events by maximum block number.

min_block_timestampinteger

Filter events by minimum block timestamp. In milliseconds.

max_block_timestampinteger

Filter events by maximum block timestamp. In milliseconds.

min_spec_versioninteger

Filter events by minimum runtime spec version.

max_spec_versioninteger

Filter events by maximum runtime spec version.

pallet_namestring

Filter events by pallet name. Case insensitive. Stored in CapitalCase. Underscore (_) character is ignored.

event_namestring

Filter events by event name. Case insensitive. Stored in CapitalCase. Underscore (_) character is ignored.

include_argsboolean

Whether to include event arguments in the events in the response. Default is false. Setting this to true increases response size considerably. Prefer to use the GET /event/{event_hash}/args endpoint per event instead.

Response

List of matching events, with a cursor for the next page.

Example response

{
  "data": [
    {
      "args": {
        "dispatchInfo": {
          "class": {
            "type": "Mandatory",
            "value": []
          },
          "paysFee": {
            "type": "Yes",
            "value": []
          },
          "weight": {
            "proofSize": "0",
            "refTime": "125000000"
          }
        }
      },
      "blockHash": "0x5c4de7f2cea658d5d3804d495e8246354f709735d371fd54caaf59e80181bcaa",
      "blockNumber": 10758052,
      "blockStatus": "proposed",
      "blockTimestamp": 1765456362000,
      "eventName": "ExtrinsicSuccess",
      "extrinsicHash": "0x6963ce866a54258d9d6ca9222060f7270a8f5f6b83eaac88e899bb73fbbb68cb",
      "extrinsicIndex": 0,
      "hash": "0x2c923bb54d06dfb649aaaf1c198eb1af9e19ec52b8e90267984496c128ee7adc",
      "index": 1,
      "palletEventIndex": 0,
      "palletIndex": 0,
      "palletName": "System",
      "phase": "ApplyExtrinsic",
      "specVersion": 2000003,
      "traceIndex": 78
    }
  ],
  "pagination": {
    "count": 57,
    "nextCursor": "eyJjdXJzb3JfcG9zaXRpb24iOnsiYmxvY2tfbnVtYmVyIjozMzY0MzMzLCJibG9ja19oYXNoX2hleCI6IjB4ZjdlMjkyYWQ3ZDNkYzE4MzUzOWYwOGM4NDgwMmNiMDc2ZTc5NjNkYjA2NTA3MjAwNTY1M2NjNWU4YzdkMTE3MyIsImluZGV4IjowfSwicXVlcnkiOnsiaW5jbHVkZV9hcmdzIjpmYWxzZX19",
    "pageSize": 1
  }
}

Changes

    • info

      added the required property / to the response with the status

    • breaking

      removed the required property // from the response with the status

    • info

      added the required property // to the response with the status