(Prevote, Signature)

Tuple 132 v393

About This Type

Tuple of 2 values: Prevote, Signature.

A fixed-size ordered collection of heterogeneous types, each encoded in order.

Encoding: Each element encoded consecutively in declaration order.

Tuple (2 elements)

Elements
  1. 0 Prevote
  2. 1 Signature

SCALE Encoding

Rule
2 elements encoded consecutively in declaration order.
Size
sum of element sizes

Examples

(Prevote, Signature) = (<Prevote>, <Signature>)
0x<Prevote><Signature>
element 0 Prevote encoded at position 0
element 1 Signature encoded at position 1

Code Examples

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

const registry = new TypeRegistry();

// Encode a (Prevote, Signature)
const tuple = registry.createType("(Prevote, Signature)", [0, 0]);
console.log("Hex:", tuple.toHex());

Referenced By (2)

Type Information

Type ID
132
Kind
Tuple
Runtime
v393