parse_transaction function - currently untested