ExtrinsicEncoder class
Encoder for creating the final extrinsic bytes
This class takes signed data and encodes it into the final extrinsic format that can be submitted to the chain. It handles version bytes, MultiAddress, MultiSignature, extensions, and the compact length prefix.
Constructors
- ExtrinsicEncoder(ChainInfo chainInfo)
Properties
Methods
-
encode(
SignedData signedData) → Uint8List - Encode a signed extrinsic ready for submission
-
encodeUnsigned(
Uint8List callData) → Uint8List - Create an unsigned extrinsic (for inherents or unsigned transactions)
-
encodeWithoutPrefix(
SignedData signedData) → Uint8List - Encode extrinsic without the length prefix
-
getExtrinsicInfo(
SignedData signedData) → EncodedExtrinsicInfo - Get information about the encoded extrinsic
-
getHash(
SignedData signedData) → Uint8List - Get the extrinsic hash (Blake2b-256 of encoded extrinsic)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toHex(
SignedData signedData) → String - Get hex representation of the extrinsic
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited