Fetch output based on txid:n