Account constructor

const Account({
  1. required int lamports,
  2. required String owner,
  3. required AccountData? data,
  4. required bool executable,
  5. @JsonKey.new(fromJson: bigIntFromJson) required BigInt rentEpoch,
})

Implementation

const factory Account({
  /// Number of lamports assigned to this account, as a u64
  required int lamports,

  /// base-58 encoded Pubkey of the program this account has been
  /// assigned to
  required String owner,

  /// Data associated with the account, either as encoded binary
  /// data or JSON format {program: state}, depending on
  /// encoding parameter
  required AccountData? data,

  /// Boolean indicating if the account contains a program (and
  /// is strictly read-only)
  required bool executable,

  /// The epoch at which this account will next owe rent, as u64
  @JsonKey(fromJson: bigIntFromJson) required BigInt rentEpoch,
}) = _Account;