fetchSysvarRent function
Fetches the Rent sysvar account using the provided RPC client.
Implementation
Future<SysvarRent> fetchSysvarRent(
Rpc rpc, {
FetchAccountConfig? config,
}) async {
final account = await fetchEncodedSysvarAccount(
rpc,
sysvarRentAddress,
config: config,
);
assertAccountExists(account);
final decoded = decodeAccount(
(account as ExistingAccount<Uint8List>).account,
getSysvarRentDecoder(),
);
return decoded.data;
}