typescript-sdk

Home > @3rdweb/sdk > TokenModule > getAllHolderBalances

TokenModule.getAllHolderBalances() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Lets you get a all token holders and their corresponding balances - This can be very slow for large numbers of token holders

Signature:

getAllHolderBalances(): Promise<Record<string, BigNumber>>;

Returns:

Promise<Record<string, BigNumber>>