Skip to content

Commit

Permalink
chore: tsdoc - installModule
Browse files Browse the repository at this point in the history
  • Loading branch information
joepegler committed Sep 19, 2024
1 parent d0ad76d commit a5493d1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/sdk/clients/decorators/erc7579/installModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,26 @@ export type InstallModuleParameters<
nonce?: bigint
}

/**
* Installs a module on a given smart account.
*
* @param client - The client instance.
* @param parameters - Parameters including the smart account, module to install, and optional gas settings.
* @returns The hash of the user operation as a hexadecimal string.
* @throws {AccountNotFoundError} If the account is not found.
*
* @example
* import { installModule } from '@biconomy/sdk'
*
* const userOpHash = await installModule(nexusClient, {
* module: {
* type: 'executor',
* address: '0x...',
* context: '0x'
* }
* })
* console.log(userOpHash) // '0x...'
*/
export async function installModule<
TSmartAccount extends SmartAccount | undefined
>(
Expand Down

0 comments on commit a5493d1

Please sign in to comment.