metadata

Get metadata by spec version

Returns the metadata by its spec version.

get/metadata/{spec_version}

Request

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

Path parameters

spec_versioninteger required

Metadata spec version.

Response

Full metadata with the given spec version.

metadataVersioninteger required

Metadata version.

specVersioninteger required

Metadata runtime spec version.

Example response

{
  "metadataVersion": 14,
  "pallets": [
    {
      "calls": [
        {
          "docs": [
            "Make some on-chain remark."
          ],
          "index": 0,
          "name": "Remark"
        }
      ],
      "constants": [
        {
          "docs": [
            "The maximum length of a block (in bytes)."
          ],
          "index": 1,
          "name": "BlockLength",
          "typeId": 156,
          "typeName": "frame_system::limits::BlockLength",
          "value": {
            "max": {
              "mandatory": "5242880",
              "normal": "3932160",
              "operational": "5242880"
            }
          },
          "valueHex": "0x00003c000000500000005000"
        }
      ],
      "errors": [
        {
          "docs": [
            "The name of specification does not match between the current runtime",
            "and the new runtime."
          ],
          "index": 0,
          "name": "InvalidSpecName"
        }
      ],
      "events": [
        {
          "docs": [
            "`:code` was updated."
          ],
          "index": 2,
          "name": "CodeUpdated"
        }
      ],
      "index": 0,
      "name": "System",
      "storageItems": [
        {
          "docs": [
            "Hash of the previous block."
          ],
          "index": 8,
          "keyPrefix": "0x26aa394eea5630e07c48ae0c9558cef78a42f33323cb5ced3b44dd825fda9fcc",
          "name": "ParentHash"
        }
      ]
    }
  ],
  "specVersion": 1001
}

Changes

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