MetadataConstant
A constant defined in a metadata pallet.
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:
7namestringrequired
Constant name. Camel case.
Example:
BountyDepositBasetypeIdinteger<int32>
Id of the constant's type.
Possible values: >= 0
Example:
3typeNamestringrequired
Name of the constant's type.
Example:
TypeNamevalueobject
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})+$
MetadataConstant
{
"docs": [
"Call documentation line 1.",
"Call documentation line 2."
],
"index": 7,
"name": "BountyDepositBase",
"typeId": 3,
"typeName": "TypeName",
"value": {},
"valueHex": "string"
}