When there are more than one transaction then it returns an array, otherwise, returns an transaction_result