Replace functions retrieving transaction.