metadata

Get metadata pallet constants

Returns the constants in a pallet in a metadata version.

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

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}/constants
  • Auth: none declared

Path parameters

spec_versioninteger required

Metadata spec version.

pallet_indexinteger required

Metadata pallet index.

Response

All constants in a pallet.

docsstring[] required

Metadata item documentation. One item per line in the array.

indexinteger required

Constant's index inside the metadata pallet.

namestring required

Constant name. Camel case.

typeIdinteger

Id of the constant's type.

typeNamestring required

Name of the constant's type.

valueobject

Metadata constant value in JSON format. Schema depends on the definition within the runtime metadata.

valueHexstring required

Arbitrary hex-encoded bytes, 0x-prefixed.

Example response

[
  {
    "docs": [
      "Call documentation line 1.",
      "Call documentation line 2."
    ],
    "index": 7,
    "name": "BountyDepositBase",
    "typeId": 3,
    "typeName": "TypeName",
    "value": {
      "proofSize": "8388608",
      "refTime": "1600000000000"
    },
    "valueHex": "0xdeadbeef"
  }
]

Changes

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