getHistory method

Future<List<HistoryResponse>?> getHistory(
  1. GetHistoryOptions options
)

Implementation

Future<List<HistoryResponse>?> getHistory(GetHistoryOptions options) async {
  var appConfig = _ensureAppConfig();
  Commitment commitment = _getCommitment(options.commitment);
  AppConfigMint? mint = _getAppMint(appConfig, options.mint);

  return accountApi.getHistory(
    sdkConfig.environment,
    sdkConfig.index,
    options.account,
    mint.publicKey,
    commitment,
  );
}