Skip to main content
type UseEnableSpendPermissionsReturnType = {
  enableSpendPermissions: (options: EnableSpendPermissionsOptions) => Promise<EnableSpendPermissionsResult>;
  data:   | GetUserOperationResult
     | undefined;
  error: Error | undefined;
  status: Status;
};
Return type for the useEnableSpendPermissions hook.

Param

The function to enable spend permissions on an existing EVM Smart Account.

Properties

PropertyType
enableSpendPermissions(options: EnableSpendPermissionsOptions) => Promise<EnableSpendPermissionsResult>
data| GetUserOperationResult | undefined
errorError | undefined
statusStatus