event

Get event by hash

Returns the event by its hash.

get/events/{event_hash}

Request

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

Path parameters

event_hashstring required

Event hash in hex (with or without 0x prefix, case-insensitive).

Query parameters

include_argsboolean

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

Response

Event with the given hash.

argsobject

Call arguments in JSON format. Schema depends on the call's schema definition in the runtime metadata.

blockHashstring required

32-byte Blake2b-256, always 0x-prefixed and lowercase in responses. Inputs elsewhere may accept mixed case or missing 0x; the API normalizes outputs.

blockNumberinteger required

Number of the event's block.

blockStatus'proposed' | 'pruned' | 'finalized' required

Block status.

  • finalized: Blocks that have been finalized on chain.
  • proposed: Blocks that have been authored but not yet finalized.
  • pruned: Blocks that have been removed or are no longer accessible.
blockTimestampinteger

Timestamp of the event's block. Milliseconds.

eventNamestring required

Name of the event.

extrinsicHashstring

32-byte Blake2b-256, always 0x-prefixed and lowercase in responses. Inputs elsewhere may accept mixed case or missing 0x; the API normalizes outputs.

extrinsicIndexinteger

Index of the event's extrinsic, if it was output from an extrinsic.

hashstring required

32-byte Blake2b-256, always 0x-prefixed and lowercase in responses. Inputs elsewhere may accept mixed case or missing 0x; the API normalizes outputs.

indexinteger required

Index of the event in block.

palletEventIndexinteger required

Index of the event in its pallet.

palletIndexinteger required

Pallet index of the event.

palletNamestring required

Pallet name of the event.

phasestring required

Event phase.

specVersioninteger required

Runtime spec version of the event's block.

traceIndexinteger

Index of the event's trace, if traces are enabled.

Example response

{
  "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
}

Changes

No recorded changes to this operation across all 1 revision of this API.