code: def namedb_get_value_hash_txids(cur, value_hash):
      
      query = 'SELECT txid FROM history WHERE value_hash = ? ORDER BY block_id,vtxindex;'
      args = (value_hash,)
  
      rows = namedb_query_execute(cur, query, args)
      txids = []
      
      for r in rows:
          # present
          txid = str(r['txid'])
          txids.append(txid)
  
      return txids
docs: Get the list of txs that sent this value hash, ordered by block and vtxindex