What is the difference between a direct object and an indirect object?

Direct objects are nouns that receive the action of a verb and answer the question “what?” or “whom?” (e.g., “I bought some flowers”).

Indirect objects are nouns that receive the direct object and answer the question “to whom?” or “for whom?” (e.g., “I bought Morgan some flowers”).

Both direct objects and indirect objects are used with transitive verbs. Direct objects are required after transitive verbs, and indirect objects are optional