Registry::Call

Variant 171 v393

pallet_registry::pallet::Call

Contains a variant per dispatchable extrinsic that this pallet has.

About This Type

Call enum for the Call pallet.

Contains all dispatchable functions (extrinsics) for the Call pallet. Each variant represents a different callable function with its parameters.

Variants (2)

IndexNameFieldsDocs
0set_identity
identified: AccountId
Register an identity for an account. This will overwrite any existing identity.
1clear_identity
identified: AccountId
Clear the identity of an account.

SCALE Encoding

Rule
1-byte variant index followed by variant-specific field data. 2 possible variants.
Size
variable (1+ bytes)

Examples

set_identity = set_identity(identified, info)
0x00<field0><field1>
00 Variant index 0 = set_identity
field 0 identified: AccountId
field 1 info: IdentityInfo
clear_identity = clear_identity(identified)
0x01<field0>
01 Variant index 1 = clear_identity
field 0 identified: AccountId

Code Examples

import { TypeRegistry } from "@polkadot/types";

const registry = new TypeRegistry();

// Encode Registry::Call — variant "set_identity"
const value = registry.createType("Registry::Call", { set_identity: { identified: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY", info: 0 } });
console.log("Hex:", value.toHex());

Type Parameters

T

Referenced By (23)

and 3 more...

Also See

Type Information

Type ID
171
Kind
Variant
Path
pallet_registry::pallet::Call
Runtime
v393