metadata

Get metadata pallet

Returns the full metadata pallet by metadata spec version and pallet index.

get/metadata/{spec_version}/pallets/{pallet_index}

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}/pallets/{pallet_index}
  • Auth: none declared

Path parameters

spec_versioninteger required

Metadata spec version.

pallet_indexinteger required

Metadata pallet index.

Response

Full metadata pallet with the given spec version and pallet index.

indexinteger required

Pallet's index inside the metadata.

namestring required

Pallet's name.

Example response

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

Changes

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