Announcement

Composite 496 v393

pallet_subtensor_proxy::Announcement

About This Type

Structured type: Announcement.

A struct-like type where each field is encoded in declaration order.

Encoding: Fields encoded consecutively in declaration order, no field names or separators.

Fields (3)

#NameType
0realAccountId
1call_hashH256
2heightu32

SCALE Encoding

Rule
3 fields encoded consecutively in declaration order. No field names or delimiters.
Size
sum of field sizes

Examples

Struct with 3 fields = real: AccountId, call_hash: H256, height: u32
0x<field0><field1><field2>
field 0 real: AccountId
field 1 call_hash: H256
field 2 height: u32

Code Examples

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

const registry = new TypeRegistry();

// Encode Announcement
const value = registry.createType("Announcement", {
  real: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
  call_hash: 0,
  height: 1000000
});
console.log("Hex:", value.toHex());

Type Parameters

AccountId = AccountId
Hash = H256
BlockNumber = u32

Referenced By (1)

Type Information

Type ID
496
Kind
Composite
Path
pallet_subtensor_proxy::Announcement
Runtime
v393