trace

Get traces

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

get/traces

Request

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

Query parameters

next_cursorstring

Opaque cursor for trace 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 traces per page to be returned.

min_block_numberinteger

Filter traces by minimum block number.

max_block_numberinteger

Filter traces by maximum block number.

min_block_timestampinteger

Filter traces by minimum block timestamp. In milliseconds.

max_block_timestampinteger

Filter traces by maximum block timestamp. In milliseconds.

min_spec_versioninteger

Filter traces by minimum runtime spec version.

max_spec_versioninteger

Filter traces by maximum runtime spec version.

key_prefixstring

Arbitrary hex-encoded bytes, mixed case, optional 0x-prefix.

Example:0xdeadbeef

Filter traces by Substrate storage key prefix.

key_paramsstring

Arbitrary hex-encoded bytes, mixed case, optional 0x-prefix.

Example:0xdeadbeef

Filter traces by Substrate storage key parameters.

Response

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

Example response

{
  "data": [
    {
      "blockHash": "0x2f08d6887f29369af351118631221891b47ca5f0c2ef14f4da0dd32c3bed0d77",
      "blockNumber": 3213251,
      "extId": "0x3e44",
      "hash": "0xebae2efe1479e7e4535c8ffb337359e252a54ac77a13c6095c9bbc5e78622daa",
      "index": 20,
      "keyParams": "0x5a3fb8de4321e12fad081eaeece61bc56d6f646c506f745374616b650000000000000000000000000000000000000000",
      "keyPrefix": "0x26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da9",
      "palletIndex": 0,
      "palletName": "System",
      "palletStorageItemIndex": 0,
      "palletStorageItemName": "Account",
      "parentId": null,
      "specVersion": 2000000,
      "storageMethod": "Put"
    }
  ],
  "pagination": {
    "count": 57,
    "nextCursor": "eyJjdXJzb3JfcG9zaXRpb24iOnsiYmxvY2tfbnVtYmVyIjozMzY0MzMzLCJibG9ja19oYXNoX2hleCI6IjB4ZjdlMjkyYWQ3ZDNkYzE4MzUzOWYwOGM4NDgwMmNiMDc2ZTc5NjNkYjA2NTA3MjAwNTY1M2NjNWU4YzdkMTE3MyIsImluZGV4IjowfSwicXVlcnkiOnsiaW5jbHVkZV9hcmdzIjpmYWxzZX19",
    "pageSize": 1
  }
}

Changes

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