UncheckedExtrinsic

Composite 565 v411

sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic

About This Type

The raw extrinsic (transaction) format before signature verification.

The on-chain transaction format: a length-prefixed byte sequence containing an optional signature and the encoded call data. This is what gets broadcast to the network.

Encoding: Compact length prefix + 1-byte version/signing flag + optional (signer + signature + extra) + call bytes.

Fields (1)

#NameType
0(unnamed)Vec<u8>

SCALE Encoding

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

Examples

Struct with 1 field = ?: Vec<u8>
0x<field0>
field 0 field0: Vec<u8>

Code Examples

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

const registry = new TypeRegistry();

// Encode UncheckedExtrinsic
const value = registry.createType("UncheckedExtrinsic", {
  field: 0
});
console.log("Hex:", value.toHex());

Type Parameters

Address = MultiAddress
Call = RuntimeCall
Signature = MultiSignature
Extra = ((CheckNonZeroSender, CheckSpecVersion, CheckTxVersion, CheckGenesis, CheckMortality, CheckNonce, CheckWeight), (ChargeTransactionPaymentWrapper, SudoTransactionExtension, CheckShieldedTxValidity, SubtensorTransactionExtension, DrandPriority), CheckMetadataHash)

Referenced By (1)

Type Information

Type ID
565
Kind
Composite
Path
sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic
Runtime
v411