getAccounts

Calls the "getAccounts" function on the contract.

Example

import { getAccounts } from "thirdweb/extensions/erc4337";
const result = await getAccounts({
contract,
start: ...,
end: ...,
});
function getAccounts(options: BaseTransactionOptions<GetAccountsParams>) : Promise<readonly Array<string>>

Parameters

The options for the getAccounts function.

Type

let options: BaseTransactionOptions<GetAccountsParams>;

Returns

let returnType: Promise<readonly Array<string>>

The parsed result of the function call.