getAccountInfo abstract method

Future<AccountResult> getAccountInfo(
  1. String pubKey, {
  2. Commitment commitment = Commitment.finalized,
  3. Encoding? encoding,
  4. DataSlice? dataSlice,
  5. num? minContextSlot,
})

Returns all information associated with the account of provided Pubkey

pubKey Pubkey of account to query, as base-58 encoded string

commitment For commitment parameter description see this document Commitment.processed is not supported as commitment.

encoding

dataSlice Limit the returned account data using the provided offset:

minContextSlot Set the minimum slot that the request can be evaluated at.

Implementation

Future<AccountResult> getAccountInfo(
  String pubKey, {
  Commitment commitment = Commitment.finalized,
  Encoding? encoding,
  DataSlice? dataSlice,
  num? minContextSlot,
});