Path Parameters
- palletIdstringREQUIRED
The name or index of the pallet to read dispatchable metadata for.
- dispatchableItemIdstringREQUIRED
The id of the dispatchable item to query for
Query Parameters
- metadataboolean
Include the dispatchable items metadata (including documentation) if set to true.
Returns
- atobject
An object containing information about the state
- hashstring
The block's hash
- heightstring
The block's height
- palletstring
The name of the pallet (or module) within the blockchain runtime
- palletIndexstring
The index of the pallet within the runtime
- dispatchableItemstring
The id of the dispatchable item to query for
- metadataobject
The metadata object which contains the following fields:
- namestring
The name of the dispatchable item
- fieldsarray
An array of field definitions for the method, where each field represents an input parameter or data structure used in the function. Each field includes:
- namestring
The name of the field, describing what data it holds
- typestring
A numeric identifier representing the type of the field
- typeNamestring
A string indicating the actual data type
- docsarray
An array of strings providing documentation for the field
- indexstring
A numeric string that represents the index or position of the function within the pallet
- docsarray
An array of documentation strings that describe the function
- argsarray
An array describing the arguments required by the function. Each argument includes:
- namestring
The name of the argument
- typestring
The argument's type
- typeNamestring
A string that names the type in a more descriptive or structured way