Skip to main content

Metadata

Parsed metadata specification complete with its pallets.

metadataVersioninteger<int32>required

Metadata version.

Possible values: >= 0

Example: 14
pallets object[]required

Metadata pallets.

  • Array [
  • calls object[]required

    Pallet's calls.

  • Array [
  • docsstring[]required

    Call documentation. One item per line in the array.

    Example: ["Call documentation line 1.","Call documentation line 2."]
    indexinteger<int32>required

    Call's index inside the metadata pallet.

    Possible values: >= 0

    Example: 37
    namestringrequired

    Call name. Camel case.

    Example: Transfer
  • ]
  • constants object[]required

    Pallet's constants.

  • Array [
  • docsstring[]required

    Constant documentation. One item per line in the array.

    Example: ["Call documentation line 1.","Call documentation line 2."]
    indexinteger<int32>required

    Constant's index inside the metadata pallet.

    Possible values: >= 0

    Example: 7
    namestringrequired

    Constant name. Camel case.

    Example: BountyDepositBase
    typeIdinteger<int32>

    Id of the constant's type.

    Possible values: >= 0

    Example: 3
    typeNamestringrequired

    Name of the constant's type.

    Example: TypeName
    valueobject

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

    valueHexHexString (string)required

    Arbitrary hex-encoded bytes, 0x-prefixed.

    Possible values: Value must match regular expression ^0x(?:[0-9a-f]{2})+$

  • ]
  • errors object[]required

    Pallet's errors.

  • Array [
  • docsstring[]required

    Error documentation. One item per line in the array.

    Example: ["Call documentation line 1.","Call documentation line 2."]
    indexinteger<int32>required

    Error's index inside the metadata pallet.

    Possible values: >= 0

    Example: 17
    namestringrequired

    Error name. Camel case.

    Example: AssignmentsEmpty
  • ]
  • events object[]required

    Pallet's events.

  • Array [
  • docsstring[]required

    Event documentation. One item per line in the array.

    Example: ["Call documentation line 1.","Call documentation line 2."]
    indexinteger<int32>required

    Event's index inside the metadata pallet.

    Possible values: >= 0

    Example: 21
    namestringrequired

    Event name. Camel case.

    Example: CandidateBacked
  • ]
  • indexinteger<int32>required

    Pallet's index inside the metadata.

    Possible values: >= 0

    Example: 53
    namestringrequired

    Pallet's name.

    Example: Balances
    storageItems object[]required

    Pallet's storage items.

  • Array [
  • docsstring[]required

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

    Example: ["Call documentation line 1.","Call documentation line 2."]
    indexinteger<int32>required

    Storage item's index inside the metadata pallet.

    Possible values: >= 0

    Example: 0
    keyPrefixHexString (string)required

    Arbitrary hex-encoded bytes, 0x-prefixed.

    Possible values: Value must match regular expression ^0x(?:[0-9a-f]{2})+$

    namestringrequired

    Storage item name. Camel case.

    Example: Account
  • ]
  • ]
  • specVersioninteger<int32>required

    Metadata runtime spec version.

    Possible values: >= 0

    Example: 1001
    Metadata
    {
    "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
    }