Umi — API References - v1.3.0
    Preparing search index...

    Function safeFetchAllMixedAccounts

    • Fetches multiple accounts of potentially different types in a single RPC call and deserializes each one using its provided deserializer.

      Accounts that do not exist are returned as null at the corresponding position in the output tuple. This differs from the kinobi-generated safeFetchAllX helpers, which filter out missing accounts and return a dense array: positional nulls are required here so the result tuple can preserve its declared per-element types.

      Type Parameters

      Parameters

      Returns Promise<MaybeDeserializedAccounts<T>>

      const [metadata, edition] = await safeFetchAllMixedAccounts(context, [
      { publicKey: metadataAddr, deserialize: deserializeMetadata },
      { publicKey: editionAddr, deserialize: deserializeEdition },
      ]);
      // metadata: Metadata | null, edition: Edition | null