This change moves all the transaction indexing functions to a separate txindexer.go file and defines a txIndexer structure as a refactoring.