Skip to content

Commit

Permalink
chore: tsdoc - getInstalledExecutors
Browse files Browse the repository at this point in the history
  • Loading branch information
joepegler committed Sep 19, 2024
1 parent f1e6985 commit 5fb0f90
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/sdk/clients/decorators/erc7579/getInstalledExecutors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@ export type GetInstalledExecutorsParameters<
cursor?: Hex
}

/**
* Retrieves the installed executors for a given smart account.
*
* @param client - The client instance.
* @param parameters - Parameters including the smart account, page size, and cursor.
* @returns A tuple containing an array of executor addresses and the next cursor.
* @throws {AccountNotFoundError} If the account is not found.
*
* @example
* import { getInstalledExecutors } from '@biconomy/sdk'
*
* const [executors, nextCursor] = await getInstalledExecutors(nexusClient, {
* pageSize: 10n
* })
* console.log(executors, nextCursor) // ['0x...', '0x...'], '0x...'
*/
export async function getInstalledExecutors<
TSmartAccount extends SmartAccount | undefined
>(
Expand Down

0 comments on commit 5fb0f90

Please sign in to comment.