CustomTransaction class base

Represents a custom transaction on the MultiversX blockchain.

This class extends TransactionWithData to provide functionality for creating transactions with custom commands and arguments.

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

CustomTransaction.new({required NetworkConfiguration networkConfiguration, required Nonce nonce, required Balance value, required PublicKey sender, required PublicKey receiver, required GasLimit gasLimit, required String command, List<String> arguments = const []})
Creates a new CustomTransaction instance.

Properties

chainId ChainId
finalinherited
data TransactionData
finalinherited
gasLimit GasLimit
finalinherited
gasPrice GasPrice
finalinherited
guardian → PublicKey?
finalinherited
guardianSignature Signature
finalinherited
hashCode int
The hash code for this object.
no setterinherited
nonce Nonce
finalinherited
receiver → PublicKey
finalinherited
relayer → PublicKey?
finalinherited
relayerSignature Signature
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sender → PublicKey
finalinherited
signature Signature
finalinherited
transactionHash TransactionHash?
finalinherited
value Balance
finalinherited
version TransactionVersion
finalinherited

Methods

copyWith({Signature? newSignature, PublicKey? newGuardian, Signature? newGuardianSignature, TransactionHash? newTransactionHash, PublicKey? newSender, PublicKey? newRelayer, Signature? newRelayerSignature, GasLimit? newGasLimit}) Transaction
Creates a copy of this transaction with optional new values.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap({PublicKey? signedBy}) Map<String, dynamic>
Converts the transaction to a map representation.
inherited
toRequest() → SendTransactionRequest

Available on Transaction, provided by the ToSendTransactionRequest extension

Converts the transaction to a SendTransactionRequest.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited