include writing extra info in tx

this extra info helps keep the offline wallet up to date.