CommandMetadata class

Annotations
  • @JsonSerializable()

Constructors

CommandMetadata({required String chainId, required String sender, int? gasLimit, double? gasPrice, int? ttl, int? creationTime})
CommandMetadata.fromJson(Map<String, dynamic> json)
factory

Properties

chainId String
The chain id of the chain to send the transaction to.
final
creationTime int
The creation time of the transaction in epoch milliseconds.
final
gasLimit int
The gas limit for the transaction. Example: 2500. Higher gas limit means more gas is used if an error occurs. Keep the gas limit low to avoid this.
final
gasPrice double
The gas price for the transaction. Generally something like 1e-5.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sender String
The public key of the sender. This is also the gas payer.
final
ttl int
The time to live for the transaction. Example: 28800.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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