Removed duplicate postTransaction function and set up getConnections function