FeeCalculator class
Fee Calculator
- Inheritance
-
- Object
- BorshObject
- FeeCalculator
- Annotations
-
- @JsonSerializable()
- @Deprecated('Deprecated since Solana v1.8.0')
Constructors
- FeeCalculator.new(BigInt lamportsPerSignature)
-
const
-
FeeCalculator.fromJson(Map<
String, dynamic> json) -
Creates an instance of
this
class from the constructor parameters defined in thejson
object.factory
Properties
- borshSchema → BorshSchema
-
Maps
this
class' properties to codecs.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- lamportsPerSignature → BigInt
-
The cost in
lamports
to validate asignature
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
borshSize(
) → int -
Returns the serialized byte length of
this
instance.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBorsh(
) → Iterable< int> -
Serializes
this
instance into a buffer.inherited -
toJson(
) → Map< String, dynamic> -
Serialises
this
class into a JSON object.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- codec → BorshStructSizedCodec
-
The encoders/decoders of
this
class' properties.no setter
Static Methods
-
fromBorsh(
Iterable< int> buffer) → FeeCalculator -
Creates an instance of
this
class from a buffer.override -
fromBorshBase64(
String encoded) → FeeCalculator -
Creates an instance of
this
class from a base-64 encoded string.override -
tryFromBorsh(
Iterable< int> ? buffer) → FeeCalculator? -
Creates an instance of
this
class from a buffer.override -
tryFromBorshBase64(
String? encoded) → FeeCalculator? -
Creates an instance of
this
class from a base-64 encoded string.override