DynamicFee class
DynamicFee contract allows you to create a transaction without specifying the fee. The fee will be determined at the moment of transfer.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
{required Address receiver, required int amount, required int firstValid, required Address closeTo, int? lastValid, String? lease}) → ContractTemplate - Create a new Dynamic Fee contract. DynamicFee contract allows you to create a transaction without specifying the fee. The fee will be determined at the moment of transfer.
-
getReimbursementTransactions(
{required RawTransaction transaction, required LogicSignature signature, required Account account, required int feePerByte}) → Future< Uint8List> - Create and sign the secondary dynamic fee transaction, update transaction fields, and sign as the fee payer; return both transactions ready to be sent.
-
sign(
{required ContractTemplate contract, required Account sender, required String genesisHash}) → Future< SignedDynamicFee> - Return the main transaction and signed logic needed to complete the transfer. These should be sent to the fee payer, who can use get_transactions() to update fields and create the auxiliary transaction.
Constants
- referenceProgram → const String