Account constructor
const
Account({
- required int lamports,
- required String owner,
- required AccountData? data,
- required bool executable,
- @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;