@bonfida/spl-name-service 2.2.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,3 +50,12 @@ export declare const getFavoriteDomain: (connection: Connection, owner: PublicKe
50
50
  reverse: string;
51
51
  stale: boolean;
52
52
  }>;
53
+ /**
54
+ * This function can be used to retrieve the favorite domains for multiple wallets, up to a maximum of 100.
55
+ * If a wallet does not have a favorite domain, the result will be 'undefined' instead of the human readable domain as a string.
56
+ * This function is optimized for network efficiency, making only four RPC calls, three of which are executed in parallel using Promise.all, thereby reducing the overall execution time.
57
+ * @param connection The Solana RPC connection object
58
+ * @param wallets An array of PublicKeys representing the wallets
59
+ * @returns A promise that resolves to an array of strings or undefined, representing the favorite domains or lack thereof for each wallet
60
+ */
61
+ export declare const getMultipleFavoriteDomains: (connection: Connection, wallets: PublicKey[]) => Promise<(string | undefined)[]>;