Serialize transaction creation.

Fixes #120.