Create initial residue transaction

https://trello.com/c/WidiT0hp/15--
@psmir why do you need index by this field?