@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.
- package/dist/favorite-domain.d.ts +9 -0
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/nft/name-tokenizer.d.ts +1 -0
- package/dist/{record_v2.d.ts → record_v2/index.d.ts} +1 -9
- package/dist/record_v2/utils.d.ts +10 -0
- package/dist/state.d.ts +1 -0
- package/dist/utils.d.ts +8 -0
- package/package.json +1 -1
|
@@ -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)[]>;
|