ExtrinsicPayload class
Constructors
-
ExtrinsicPayload({required Uint8List signer, required Uint8List method, required Uint8List signature, required int eraPeriod, required int blockNumber, required int nonce, required dynamic tip, Map<
String, dynamic> customSignedExtensions = const <String, dynamic>{}}) -
Create a new instance of ExtrinsicPayload
const
Properties
- blockNumber → int
-
finalinherited
-
customSignedExtensions
→ Map<
String, dynamic> -
finalinherited
- eraPeriod → int
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- method → Uint8List
-
finalinherited
- nonce → int
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signature → Uint8List
-
final
- signer → Uint8List
-
final
- tip → dynamic
-
finalinherited
Methods
-
encode(
dynamic registry, SignatureType signatureType) → Uint8List -
encodeAndSign(
dynamic registry, SignatureType signatureType, KeyPair keyPair) → Uint8List -
Encodes the payload and signs it with the supplied keypair
registry
The registrysignatureType
The signature typekeyPair
The keypair Returns Uint8List Signature -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toEncodedMap(
dynamic registry) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
usesChargeAssetTxPayment(
dynamic registry) → bool -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromPayload(
Payload payload, Uint8List signer, Uint8List signature) → ExtrinsicPayload